Added GM reporting of buildingId in buildings

This commit is contained in:
Treeku
2014-05-16 15:16:04 +01:00
parent e4eb874e18
commit 5da4f05c62
+2
View File
@@ -460,6 +460,8 @@ 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)
object.sendSystemMessage("BuildingId: Dec: " + parent.getContainer().getObjectID() + " / Hex: " + Long.toHexString(parent.getContainer().getObjectID()), DisplayType.Broadcast);
parent._add(object);
}
object.setPosition(newPos);