forked from mirror/BlueMap
Modify setFrozen behavior (#395)
This commit is contained in:
parent
631c409f79
commit
b9a3c2849a
@ -109,8 +109,13 @@ public Predicate<Vector2i> getTileFilter() {
|
||||
|
||||
@Override
|
||||
public synchronized void setFrozen(boolean frozen) {
|
||||
if (isFrozen()) unfreeze();
|
||||
else freeze();
|
||||
if (frozen != isFrozen()) {
|
||||
if (frozen) {
|
||||
freeze();
|
||||
} else {
|
||||
unfreeze();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized void unfreeze() {
|
||||
|
Loading…
Reference in New Issue
Block a user