SetParentZone removed from NPC.
This commit is contained in:
1 parent
40e4770425
commit
123f9eb588
5 files changed
+45
-199
No files matched your search
@@ -472,9 +472,7 @@ public enum BuildingManager {
|
||||
if (npc == null)
|
||||
return false;
|
||||
|
||||
|
||||
npc.setBuilding(building);
|
||||
npc.setParentZone(zone);
|
||||
WorldGrid.addObject(npc, contractOwner);
|
||||
|
||||
return true;
|
||||
@@ -530,16 +528,6 @@ public enum BuildingManager {
|
||||
if (npc == null)
|
||||
return false;
|
||||
|
||||
npc.setBindLoc(NpcLoc.x - zone.getAbsX(), NpcLoc.y - zone.getAbsY(), NpcLoc.z - zone.getAbsZ());
|
||||
|
||||
npc.setBuilding(building);
|
||||
npc.setParentZone(zone);
|
||||
|
||||
if (NPC.GetNPCProfits(npc) == null)
|
||||
NPCProfits.CreateProfits(npc);
|
||||
|
||||
WorldGrid.addObject(npc, contractOwner);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user