mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-10 21:00:36 +01:00
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