Archiviert
13
0

Made it possible to block punching fire out through PlayerInteract event.

Dieser Commit ist enthalten in:
EvilSeph 2011-06-09 01:06:24 -04:00
Ursprung 4bdc752acd
Commit 569b1d2746

Datei anzeigen

@ -51,7 +51,6 @@ public class ItemInWorldManager {
} }
public void dig(int i, int j, int k, int l) { 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 this.d = (int) (System.currentTimeMillis() / 50); // CraftBukkit
int i1 = this.world.getTypeId(i, j, k); int i1 = this.world.getTypeId(i, j, k);
@ -73,6 +72,8 @@ public class ItemInWorldManager {
} }
} else { } else {
Block.byId[i1].b(this.world, i, j, k, this.player); 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 // Handle hitting a block