diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/logging/LoggingExtent.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/logging/LoggingExtent.java index 0b820053..b7cd86bb 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/logging/LoggingExtent.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/logging/LoggingExtent.java @@ -153,6 +153,7 @@ public class LoggingExtent extends AbstractDelegateExtent { this.loc.setY(location.getY()); this.loc.setZ(location.getZ()); this.api.logBlock(this.playerName, this.world, this.loc, id_p, (byte) 0, id_b, (byte) 0); + break; default: final int data_p = previous.getData(); final int data_b = block.getData(); @@ -163,6 +164,7 @@ public class LoggingExtent extends AbstractDelegateExtent { this.loc.setY(location.getY()); this.loc.setZ(location.getZ()); this.api.logBlock(this.playerName, this.world, this.loc, id_p, (byte) data_p, id_b, (byte) data_b); + break; } this.changeSet.add(new BlockChange(location.toBlockVector(), previous, block)); return true; diff --git a/core/src/main/java/com/boydti/fawe/wrappers/PlayerWrapper.java b/core/src/main/java/com/boydti/fawe/wrappers/PlayerWrapper.java index 1f2172d4..500ebaea 100644 --- a/core/src/main/java/com/boydti/fawe/wrappers/PlayerWrapper.java +++ b/core/src/main/java/com/boydti/fawe/wrappers/PlayerWrapper.java @@ -1,6 +1,8 @@ package com.boydti.fawe.wrappers; import com.boydti.fawe.Fawe; +import com.boydti.fawe.object.RunnableVal; +import com.boydti.fawe.util.TaskManager; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.EditSessionFactory; import com.sk89q.worldedit.LocalSession; @@ -237,8 +239,13 @@ public class PlayerWrapper implements Player { } @Override - public boolean passThroughForwardWall(int range) { - return parent.passThroughForwardWall(range); + public boolean passThroughForwardWall(final int range) { + return TaskManager.IMP.sync(new RunnableVal() { + @Override + public void run(Boolean value) { + this.value = parent.passThroughForwardWall(range); + } + }); } @Override