Browse Source

Null fix in dev command.

magicbox-1.5.2^2
MagicBot 11 months ago
parent
commit
165752f6d6
  1. 2
      src/engine/gameManager/BuildingManager.java

2
src/engine/gameManager/BuildingManager.java

@ -545,7 +545,7 @@ public enum BuildingManager { @@ -545,7 +545,7 @@ public enum BuildingManager {
NPC npc = null;
npc = NPC.createNPC(pirateName, NpcID.getObjectUUID(), NpcLoc, null, zone, (short) rank, building);
npc = NPC.createNPC(pirateName, NpcID.getObjectUUID(), NpcLoc, building.getGuild(), zone, (short) rank, building);
if (npc == null)
return false;

Loading…
Cancel
Save