Browse Source

Integer object not int signature.

feature-workorder
MagicBot 1 year ago
parent
commit
d71a9415b4
  1. 4
      src/engine/net/client/handlers/MinionTrainingMsgHandler.java

4
src/engine/net/client/handlers/MinionTrainingMsgHandler.java

@ -61,7 +61,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
if (!npc.minions.contains(toRemove.getObjectUUID())) if (!npc.minions.contains(toRemove.getObjectUUID()))
return true; return true;
npc.minions.remove(toRemove.getObjectUUID()); npc.minions.remove(Integer.valueOf(toRemove.getObjectUUID()));
WorldGrid.RemoveWorldObject(toRemove); WorldGrid.RemoveWorldObject(toRemove);
@ -185,7 +185,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
if (!DbManager.MobQueries.REMOVE_FROM_GUARDS(npc.getObjectUUID(), toRemove.firstName)) if (!DbManager.MobQueries.REMOVE_FROM_GUARDS(npc.getObjectUUID(), toRemove.firstName))
return true; return true;
npc.minions.remove(toRemove.getObjectUUID()); npc.minions.remove(Integer.valueOf(toRemove.getObjectUUID()));
WorldGrid.RemoveWorldObject(toRemove); WorldGrid.RemoveWorldObject(toRemove);

Loading…
Cancel
Save