diff --git a/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/rotation/RotationTask.java b/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/rotation/RotationTask.java index 22a7032bd..ff2553f1b 100644 --- a/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/rotation/RotationTask.java +++ b/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/rotation/RotationTask.java @@ -117,15 +117,6 @@ protected void execute() { MovecraftLocation newLocation = MathUtils.rotateVec(rotation,originalLocation.subtract(originPoint)).add(originPoint); newHitBox.add(newLocation); - //Prevent piston bug - if (originalLocation.toBukkit(getCraft().getWorld()).getBlock().getType().equals(Material.MOVING_PISTON)) { - failed = true; - failMessage = (String.format(I18nSupport.getInternationalisedString("Translation - Failed Craft is obstructed") - + " @ %d,%d,%d,%s", originalLocation.getX(), originalLocation.getY(), originalLocation.getZ(), - originalLocation.toBukkit(craft.getWorld()).getBlock().getType())); - break; - } - Material oldMaterial = originalLocation.toBukkit(w).getBlock().getType(); //prevent chests collision if (Tags.CHESTS.contains(oldMaterial) && !checkChests(oldMaterial, newLocation)) { diff --git a/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/translation/TranslationTask.java b/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/translation/TranslationTask.java index e2713343f..44678ca97 100644 --- a/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/translation/TranslationTask.java +++ b/modules/Movecraft/src/main/java/net/countercraft/movecraft/async/translation/TranslationTask.java @@ -242,11 +242,6 @@ else if (world.equals(craft.getWorld()) newHitBox.add(newLocation); continue; } - //Prevent piston bug - 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())); final Material testMaterial = newLocation.toBukkit(world).getBlock().getType();