Fixes #970
This commit is contained in:
parent
39216dee42
commit
5bdc2d6519
@ -721,13 +721,15 @@ public class LocalSession {
|
||||
return selector.getRegion();
|
||||
}
|
||||
|
||||
public synchronized @Nullable VirtualWorld getVirtualWorld() {
|
||||
return virtual;
|
||||
public @Nullable VirtualWorld getVirtualWorld() {
|
||||
synchronized (dirty) {
|
||||
return virtual;
|
||||
}
|
||||
}
|
||||
|
||||
public void setVirtualWorld(@Nullable VirtualWorld world) {
|
||||
VirtualWorld tmp;
|
||||
synchronized (this) {
|
||||
synchronized (dirty) {
|
||||
tmp = this.virtual;
|
||||
this.virtual = world;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user