Remove unneeded synchronized()
This commit is contained in:
parent
090e8b9aad
commit
6609c62d90
1 changed files with 12 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue