From 677988ea44c4aca7fa6e1d393d44b37569fac67d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 29 Apr 2023 09:35:00 -0400 Subject: [PATCH] Add new npc to world. --- src/engine/gameManager/BuildingManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 911ec975..c362b3a5 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -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; }