mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Fixed null error
This commit is contained in:
@@ -484,7 +484,7 @@ public class SimulationService implements INetworkDispatch {
|
||||
remove(object, oldPos.x, oldPos.z);
|
||||
if(object.getContainer() != null)
|
||||
object.getContainer()._remove(object);
|
||||
else if (object.getClient().isGM() && parent.getContainer() != null)
|
||||
if (object.getClient().isGM() && parent != null && parent instanceof CellObject && parent.getContainer() != null)
|
||||
object.sendSystemMessage("BuildingId Hex: " + Long.toHexString(parent.getContainer().getObjectID()) + " CellNumber: " + ((CellObject) parent).getCellNumber(), DisplayType.Broadcast);
|
||||
parent._add(object);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user