Skip to content
Permalink
Browse files

Fixed an issue preventing Areas being toggled off for the first time …

…after a restart
  • Loading branch information...
me4502 committed Jun 9, 2019
1 parent 0da950b commit fe6826fe6f4868fa740616992c155d6e9d5267e4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/sk89q/craftbook/mechanics/area/Area.java
@@ -223,6 +223,7 @@ private static boolean toggle(ChangedSign sign, boolean save) {
// if we are toggling to the second area we dont clear the old area
if (!inactiveID.isEmpty() && !inactiveID.equals("--")) {
copy = CopyManager.getInstance().load(namespace, inactiveID);
copy.getRegion().setWorld(BukkitAdapter.adapt(sign.getBlock().getWorld()));
CopyManager.getInstance().paste(copy);
} else {
CopyManager.getInstance().clear(copy);
@@ -276,6 +277,7 @@ public static boolean toggleCold(ChangedSign sign) {
// if we are toggling to the second area we dont clear the old area
if (!inactiveID.isEmpty() && !inactiveID.equals("--")) {
copy = CopyManager.getInstance().load(namespace, inactiveID);
copy.getRegion().setWorld(BukkitAdapter.adapt(sign.getBlock().getWorld()));
CopyManager.getInstance().paste(copy);
} else {
CopyManager.getInstance().clear(copy);

0 comments on commit fe6826f

Please sign in to comment.
You can’t perform that action at this time.