mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-15 00:07:39 -04:00
fixed command crash
This commit is contained in:
@@ -338,7 +338,10 @@ public class CommandService implements INetworkDispatch {
|
||||
sub += 5;
|
||||
}
|
||||
|
||||
boolean isCombatCommand = (Boolean) visitor.getObject(i, 82-sub);
|
||||
boolean isCombatCommand = false;
|
||||
|
||||
if(visitor.getObject(i, 82-sub) instanceof Boolean)
|
||||
isCombatCommand = (Boolean) visitor.getObject(i, 82-sub);
|
||||
|
||||
if (hasCharacterAbility || isCombatCommand) {
|
||||
CombatCommand command = new CombatCommand(commandName);
|
||||
|
||||
Reference in New Issue
Block a user