Fixes #58
This commit is contained in:
parent
aec27d0e09
commit
72bd48a57d
@ -153,6 +153,7 @@ public class LoggingExtent extends AbstractDelegateExtent {
|
|||||||
this.loc.setY(location.getY());
|
this.loc.setY(location.getY());
|
||||||
this.loc.setZ(location.getZ());
|
this.loc.setZ(location.getZ());
|
||||||
this.api.logBlock(this.playerName, this.world, this.loc, id_p, (byte) 0, id_b, (byte) 0);
|
this.api.logBlock(this.playerName, this.world, this.loc, id_p, (byte) 0, id_b, (byte) 0);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
final int data_p = previous.getData();
|
final int data_p = previous.getData();
|
||||||
final int data_b = block.getData();
|
final int data_b = block.getData();
|
||||||
@ -163,6 +164,7 @@ public class LoggingExtent extends AbstractDelegateExtent {
|
|||||||
this.loc.setY(location.getY());
|
this.loc.setY(location.getY());
|
||||||
this.loc.setZ(location.getZ());
|
this.loc.setZ(location.getZ());
|
||||||
this.api.logBlock(this.playerName, this.world, this.loc, id_p, (byte) data_p, id_b, (byte) data_b);
|
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));
|
this.changeSet.add(new BlockChange(location.toBlockVector(), previous, block));
|
||||||
return true;
|
return true;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package com.boydti.fawe.wrappers;
|
package com.boydti.fawe.wrappers;
|
||||||
|
|
||||||
import com.boydti.fawe.Fawe;
|
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.EditSession;
|
||||||
import com.sk89q.worldedit.EditSessionFactory;
|
import com.sk89q.worldedit.EditSessionFactory;
|
||||||
import com.sk89q.worldedit.LocalSession;
|
import com.sk89q.worldedit.LocalSession;
|
||||||
@ -237,8 +239,13 @@ public class PlayerWrapper implements Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean passThroughForwardWall(int range) {
|
public boolean passThroughForwardWall(final int range) {
|
||||||
return parent.passThroughForwardWall(range);
|
return TaskManager.IMP.sync(new RunnableVal<Boolean>() {
|
||||||
|
@Override
|
||||||
|
public void run(Boolean value) {
|
||||||
|
this.value = parent.passThroughForwardWall(range);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user