This commit is contained in:
Jesse Boyd 2016-04-27 09:09:01 +10:00
parent aec27d0e09
commit 72bd48a57d
2 changed files with 11 additions and 2 deletions

View File

@ -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;

View File

@ -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<Boolean>() {
@Override
public void run(Boolean value) {
this.value = parent.passThroughForwardWall(range);
}
});
}
@Override