optimized run time

This commit is contained in:
2025-02-04 17:03:46 -06:00
parent 7d1570fdca
commit 93a975dd42
6 changed files with 12 additions and 20 deletions
@@ -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){
}