optimized run time
This commit is contained in:
@@ -166,6 +166,9 @@ public enum PowersManager {
|
||||
|
||||
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
|
||||
|
||||
if(pc == null)
|
||||
return;
|
||||
|
||||
if(!pc.isFlying() && powersBaseByToken.get(msg.getPowerUsedID()) != null && powersBaseByToken.get(msg.getPowerUsedID()).isSpell) //cant be sitting if flying
|
||||
CombatManager.toggleSit(false,origin);
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ public enum SimulationManager {
|
||||
if (player == null)
|
||||
continue;
|
||||
try {
|
||||
player.update(true);
|
||||
player.update(false);
|
||||
}catch(Exception e){
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user