mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Fixed tangibles in weapon-slot issue
This commit is contained in:
@@ -91,9 +91,9 @@ public class CommandService implements INetworkDispatch {
|
||||
return false;
|
||||
}
|
||||
|
||||
WeaponObject weapon = (WeaponObject) core.objectService.getObject(actor.getWeaponId());
|
||||
TangibleObject weapon = (TangibleObject) core.objectService.getObject(actor.getWeaponId());
|
||||
|
||||
if (weapon != null && weapon.getWeaponType() == command.getInvalidWeapon()) {
|
||||
if (weapon != null && weapon instanceof WeaponObject && ((WeaponObject) weapon).getWeaponType() == command.getInvalidWeapon()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user