Browse Source

revert power que

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
d06c298b09
  1. 4
      src/engine/net/client/ClientMessagePump.java
  2. 8
      src/engine/server/world/WorldServer.java

4
src/engine/net/client/ClientMessagePump.java

@ -1921,8 +1921,8 @@ public class ClientMessagePump implements NetMsgHandler { @@ -1921,8 +1921,8 @@ public class ClientMessagePump implements NetMsgHandler {
}
break;
case POWER:
//PowersManager.usePower((PerformActionMsg) msg, origin, false);
PowersManager.static_power_que.add(new PowersManager.PowerQueObject((PerformActionMsg) msg, origin, false));
PowersManager.usePower((PerformActionMsg) msg, origin, false);
//PowersManager.static_power_que.add(new PowersManager.PowerQueObject((PerformActionMsg) msg, origin, false));
break;
case REQUESTMELEEATTACK:
CombatManager.setAttackTarget((AttackCmdMsg) msg, origin);

8
src/engine/server/world/WorldServer.java

@ -532,10 +532,10 @@ public class WorldServer { @@ -532,10 +532,10 @@ public class WorldServer {
mineThread.setName("mine thread");
mineThread.start();
Logger.info("Starting Power Thread...");
Thread powerThread = new Thread(new PowersThread());
powerThread.setName("power thread");
powerThread.start();
//Logger.info("Starting Power Thread...");
//Thread powerThread = new Thread(new PowersThread());
//powerThread.setName("power thread");
//powerThread.start();
return true;
}

Loading…
Cancel
Save