mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-10 00:13:42 -04:00
Fixed NPC despawn issue
This commit is contained in:
@@ -66,6 +66,8 @@ import resources.server_info.Log;
|
||||
|
||||
public class ObjectAwareness extends Service implements TerrainMapCallback {
|
||||
|
||||
private static final Location GONE_LOCATION = new Location(0, 0, 0, Terrain.GONE);
|
||||
|
||||
private final AwarenessHandler awarenessHandler;
|
||||
private final DataTransformHandler dataTransformHandler;
|
||||
|
||||
@@ -183,6 +185,7 @@ public class ObjectAwareness extends Service implements TerrainMapCallback {
|
||||
private void handleDestroyObjectIntent(DestroyObjectIntent doi) {
|
||||
SWGObject obj = doi.getObject();
|
||||
disappearObject(obj, true, true);
|
||||
obj.setLocation(GONE_LOCATION);
|
||||
obj.moveToContainer(null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user