mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 12:05:13 +01:00
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