mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed spawning in the buildout buildings, fixed gm permissions, added command to lock and unlock server for gms
This commit is contained in:
@@ -30,6 +30,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import resources.common.FileUtilities;
|
||||
import resources.common.collidables.CollidableCircle;
|
||||
import resources.objects.building.BuildingObject;
|
||||
|
||||
import engine.clientdata.ClientFileManager;
|
||||
import engine.clientdata.visitors.DatatableVisitor;
|
||||
@@ -226,6 +227,26 @@ public class TerrainService {
|
||||
}
|
||||
}
|
||||
|
||||
synchronized(core.objectService.getObjectList()) {
|
||||
|
||||
for(SWGObject object : core.objectService.getObjectList().values()) {
|
||||
|
||||
if(!(object instanceof BuildingObject))
|
||||
continue;
|
||||
|
||||
BuildingObject building = (BuildingObject) object;
|
||||
|
||||
if(building.getTransaction() == null)
|
||||
continue;
|
||||
|
||||
building.createTransaction(core.getBuildingODB().getEnvironment());
|
||||
core.getBuildingODB().put(building, Long.class, BuildingObject.class, building.getTransaction());
|
||||
building.getTransaction().commitSync();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public boolean canBuildAtPosition(SWGObject object, float x, float z) {
|
||||
|
||||
Reference in New Issue
Block a user