Fixed some warnings in ObjectService

This commit is contained in:
Iosnowore Kun
2014-11-02 14:22:06 -05:00
parent 6f7e04e8e8
commit d5d3fa49f2
2 changed files with 5 additions and 4 deletions

View File

@@ -28,4 +28,4 @@ DO.ISOLATION.TESTS=0
# Toggles GCW Invasions System.
# 1 = On, 0 = Off.
ENABLE.INVASIONS=0
ENABLE.INVASIONS=1

View File

@@ -1288,7 +1288,8 @@ public class ObjectService implements INetworkDispatch {
if(! checkIfObjectAlreadyInList(object.getObjectID()))
objectList.put(object.getObjectID(), object);
} else {
Thread.currentThread().dumpStack();
Thread.currentThread();
Thread.dumpStack();
}
});
@@ -1731,12 +1732,12 @@ public class ObjectService implements INetworkDispatch {
}
private void addCellsToBuildings(){
Iterator it = null;
Iterator<?> it = null;
synchronized(buildingMap){
it = buildingMap.entrySet().iterator();
}
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry)it.next();
Map.Entry<?, ?> pairs = (Map.Entry<?, ?>)it.next();
long buildingId = (long) pairs.getKey();
BuildingObject building = (BuildingObject)pairs.getValue();
//System.out.println("We have buildingId " +buildingId);