Fixed NPC despawn issue

This commit is contained in:
Obique PSWG
2016-11-29 18:04:50 -06:00
parent 9fa7efd6c1
commit ca9b827cd2
2 changed files with 4 additions and 0 deletions
@@ -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);
}