Browse Source

Add new npc to world.

master
MagicBot 2 years ago
parent
commit
677988ea44
  1. 4
      src/engine/gameManager/BuildingManager.java

4
src/engine/gameManager/BuildingManager.java

@ -523,11 +523,13 @@ public enum BuildingManager { @@ -523,11 +523,13 @@ public enum BuildingManager {
mob.setParentZone(zone);
return true;
}
npc = NPC.createNPC( pirateName, contract.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
npc = NPC.createNPC(pirateName, contract.getObjectUUID(), NpcLoc, contractOwner.getGuild(), false, zone, (short) rank, false, building);
if (npc == null)
return false;
WorldGrid.addObject(npc, contractOwner);
return true;
}

Loading…
Cancel
Save