Skip to content

Commit

Permalink
detect processing
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiveminusmint committed Sep 11, 2024
1 parent 7c8dc8b commit 8415bf4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,14 @@ protected void execute() throws InterruptedException, ExecutionException {
continue;
}
//Prevent piston bug
if (oldLocation.toBukkit(world).getBlock().getType().equals(Material.MOVING_PISTON))
if (oldLocation.toBukkit(world).getBlock().getType().equals(Material.MOVING_PISTON)) {
// fail(String.format(I18nSupport.getInternationalisedString("Translation - Failed Craft is obstructed")
// + " @ %d,%d,%d,%s", oldLocation.getX(), oldLocation.getY(), oldLocation.getZ(),
// oldLocation.toBukkit(craft.getWorld()).getBlock().getType()));
Movecraft.getInstance().getLogger().log(Level.INFO,"Potentially unsafe piston detected");
if (!craft.isNotProcessing())
Movecraft.getInstance().getLogger().log(Level.INFO,"And while it was processing, too!");
}

final Material testMaterial = newLocation.toBukkit(world).getBlock().getType();

Expand Down

0 comments on commit 8415bf4

Please sign in to comment.