diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java index ee6b0a1ed6..3b378faf6e 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -962,19 +962,9 @@ public class PlayerConnection implements PacketPlayInListener { float f8 = f3 * f5; double d3 = 5.0D; Vec3D vec3d1 = vec3d.add((double) f7 * d3, (double) f6 * d3, (double) f8 * d3); - MovingObjectPosition movingobjectposition = this.player.world.rayTrace(vec3d, vec3d1, true); + MovingObjectPosition movingobjectposition = this.player.world.rayTrace(vec3d, vec3d1, false); - boolean valid = false; if (movingobjectposition == null || movingobjectposition.type != EnumMovingObjectType.BLOCK) { - valid = true; - } else { - Block block = this.player.world.getType(movingobjectposition.b, movingobjectposition.c, movingobjectposition.d); - if (!block.c()) { // Should be isBreakable? - valid = true; - } - } - - if (valid) { CraftEventFactory.callPlayerInteractEvent(this.player, Action.LEFT_CLICK_AIR, this.player.inventory.getItemInHand()); }