loc set to bindloc after npc returned.
This commit is contained in:
@@ -502,7 +502,7 @@ public enum BuildingManager {
|
||||
return false;
|
||||
|
||||
npc.setBuilding(building);
|
||||
WorldGrid.addObject(npc, contractOwner);
|
||||
npc.setLoc(npc.bindLoc);
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
@@ -518,7 +518,9 @@ public class NPC extends AbstractCharacter {
|
||||
|
||||
if (id == 0)
|
||||
return null;
|
||||
|
||||
NPC npc = (NPC) DbManager.getFromCache(GameObjectType.NPC, id);
|
||||
|
||||
if (npc != null)
|
||||
return npc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user