From 569b1d274699a1a018a217800d6df33bc9a55ec0 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 9 Jun 2011 01:06:24 -0400 Subject: [PATCH] Made it possible to block punching fire out through PlayerInteract event. --- src/main/java/net/minecraft/server/ItemInWorldManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ItemInWorldManager.java b/src/main/java/net/minecraft/server/ItemInWorldManager.java index be652eb419..1fd6c75e11 100644 --- a/src/main/java/net/minecraft/server/ItemInWorldManager.java +++ b/src/main/java/net/minecraft/server/ItemInWorldManager.java @@ -51,7 +51,6 @@ public class ItemInWorldManager { } public void dig(int i, int j, int k, int l) { - this.world.a((EntityHuman) null, i, j, k, l); this.d = (int) (System.currentTimeMillis() / 50); // CraftBukkit int i1 = this.world.getTypeId(i, j, k); @@ -73,6 +72,8 @@ public class ItemInWorldManager { } } else { Block.byId[i1].b(this.world, i, j, k, this.player); + // Allow fire punching to be blocked + this.world.a((EntityHuman) null, i, j, k, l); } // Handle hitting a block