mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-01-04 07:28:17 +01:00
Fixes #970
This commit is contained in:
parent
39216dee42
commit
5bdc2d6519
@ -721,13 +721,15 @@ public class LocalSession {
|
|||||||
return selector.getRegion();
|
return selector.getRegion();
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized @Nullable VirtualWorld getVirtualWorld() {
|
public @Nullable VirtualWorld getVirtualWorld() {
|
||||||
|
synchronized (dirty) {
|
||||||
return virtual;
|
return virtual;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setVirtualWorld(@Nullable VirtualWorld world) {
|
public void setVirtualWorld(@Nullable VirtualWorld world) {
|
||||||
VirtualWorld tmp;
|
VirtualWorld tmp;
|
||||||
synchronized (this) {
|
synchronized (dirty) {
|
||||||
tmp = this.virtual;
|
tmp = this.virtual;
|
||||||
this.virtual = world;
|
this.virtual = world;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user