mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed RifleBug preliminarily
This commit is contained in:
@@ -94,11 +94,14 @@ public class CommandService implements INetworkDispatch {
|
||||
return false;
|
||||
}
|
||||
|
||||
TangibleObject weapon = (TangibleObject) core.objectService.getObject(actor.getWeaponId());
|
||||
// Causes this service method to return with false after equipping a rifle, not allowing to unequip it anymore
|
||||
// because the client seems to consider rifles invalidweapons for an unkown reason
|
||||
|
||||
if (weapon != null && weapon instanceof WeaponObject && ((WeaponObject) weapon).getWeaponType() == command.getInvalidWeapon()) {
|
||||
return false;
|
||||
}
|
||||
// TangibleObject weapon = (TangibleObject) core.objectService.getObject(actor.getWeaponId());
|
||||
//
|
||||
// if (weapon != null && weapon instanceof WeaponObject && ((WeaponObject) weapon).getWeaponType() == command.getInvalidWeapon()) {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
for (long state : command.getInvalidStates()) {
|
||||
if ((actor.getStateBitmask() & state) == state) {
|
||||
|
||||
Reference in New Issue
Block a user