begin work on vendors, fixed highestid sql query(might fix crash bug)

This commit is contained in:
Light2
2014-05-06 00:55:02 +02:00
parent 3f7e3d50f8
commit ce15656ff3
11 changed files with 119 additions and 34 deletions
+2 -1
View File
@@ -78,6 +78,7 @@ import resources.objects.building.BuildingObject;
import resources.objects.cell.CellObject;
import resources.objects.creature.CreatureObject;
import resources.objects.group.GroupObject;
import resources.objects.harvester.HarvesterObject;
import resources.objects.player.PlayerObject;
import resources.objects.tangible.TangibleObject;
import resources.common.*;
@@ -192,7 +193,7 @@ public class SimulationService implements INetworkDispatch {
while(cursor.hasNext()) {
SWGObject building = core.objectService.getObject(((SWGObject) cursor.next()).getObjectID());
if(building == null || !(building instanceof BuildingObject))
if(building == null || (!(building instanceof BuildingObject) && !(building instanceof HarvesterObject)))
continue;
if(building.getAttachment("hasLoadedServerTemplate") == null)
core.objectService.loadServerTemplate(building);