Remove unneeded synchronized()

This commit is contained in:
Mike Primm 2014-02-03 22:29:00 -06:00
parent 090e8b9aad
commit 6609c62d90

View file

@ -219,9 +219,6 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
* Server access abstraction class
*/
public class BukkitServer extends DynmapServerInterface {
/* Chunk load handling */
private Object loadlock = new Object();
@Override
public int getBlockIDAt(String wname, int x, int y, int z) {
World w = getServer().getWorld(wname);
@ -463,7 +460,6 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
public Boolean call() throws Exception {
boolean exhausted = true;
synchronized(loadlock) {
if (prev_tick != cur_tick) {
prev_tick = cur_tick;
cur_tick_starttime = System.nanoTime();
@ -478,7 +474,6 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
done = exhausted || cc.isDoneLoading();
}
}
}
return exhausted;
}
});