Changed guildList to a Set, changed STAO

This commit is contained in:
Treeku
2014-05-14 20:39:03 +01:00
parent fa4816921e
commit 737b24d3b9
7 changed files with 97 additions and 160 deletions
+5
View File
@@ -1138,6 +1138,7 @@ public class ObjectService implements INetworkDispatch {
containers.add(objectId);
object = createObject(template, objectId, planet, new Point3D(px + x1, py, pz + z1), new Quaternion(qw, qx, qy, qz), null, true, false);
object.setAttachment("childObjects", null);
/*if (!duplicate.containsValue(objectId)) {
((BuildingObject) object).createTransaction(core.getBuildingODB().getEnvironment());
core.getBuildingODB().put((BuildingObject) object, Long.class, BuildingObject.class, ((BuildingObject) object).getTransaction());
@@ -1176,6 +1177,10 @@ public class ObjectService implements INetworkDispatch {
object.setContainerPermissions(WorldPermissions.WORLD_PERMISSIONS);
}
if (object != null && object instanceof TangibleObject && !(object instanceof CreatureObject)) {
((TangibleObject) object).setStaticObject(true);
}
//System.out.println("Spawning: " + template + " at: X:" + object.getPosition().x + " Y: " + object.getPosition().y + " Z: " + object.getPosition().z);
if(object != null)
object.setAttachment("isBuildout", new Boolean(true));