Browse Source

revert power que

lakebane-master
FatBoy-DOTC 8 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 {
} }
break; break;
case POWER: case POWER:
//PowersManager.usePower((PerformActionMsg) msg, origin, false); PowersManager.usePower((PerformActionMsg) msg, origin, false);
PowersManager.static_power_que.add(new PowersManager.PowerQueObject((PerformActionMsg) msg, origin, false)); //PowersManager.static_power_que.add(new PowersManager.PowerQueObject((PerformActionMsg) msg, origin, false));
break; break;
case REQUESTMELEEATTACK: case REQUESTMELEEATTACK:
CombatManager.setAttackTarget((AttackCmdMsg) msg, origin); CombatManager.setAttackTarget((AttackCmdMsg) msg, origin);

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

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

Loading…
Cancel
Save