Browse Source

Update state of npc.

master
MagicBot 1 year ago
parent
commit
0eae76180b
  1. 4
      src/engine/gameManager/BuildingManager.java

4
src/engine/gameManager/BuildingManager.java

@ -12,7 +12,6 @@ package engine.gameManager;
import engine.Enum; import engine.Enum;
import engine.Enum.BuildingGroup; import engine.Enum.BuildingGroup;
import engine.Enum.GameObjectType; import engine.Enum.GameObjectType;
import engine.InterestManagement.InterestManager;
import engine.InterestManagement.WorldGrid; import engine.InterestManagement.WorldGrid;
import engine.job.JobContainer; import engine.job.JobContainer;
import engine.job.JobScheduler; import engine.job.JobScheduler;
@ -21,6 +20,7 @@ import engine.math.Bounds;
import engine.math.Vector3fImmutable; import engine.math.Vector3fImmutable;
import engine.net.client.msg.ErrorPopupMsg; import engine.net.client.msg.ErrorPopupMsg;
import engine.objects.*; import engine.objects.*;
import engine.server.MBServerStatics;
import org.pmw.tinylog.Logger; import org.pmw.tinylog.Logger;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@ -502,8 +502,8 @@ public enum BuildingManager {
if (npc == null) if (npc == null)
return false; return false;
npc.setObjectTypeMask(MBServerStatics.MASK_NPC);
npc.setLoc(npc.bindLoc); npc.setLoc(npc.bindLoc);
InterestManager.forceLoad(npc);
return true; return true;

Loading…
Cancel
Save