3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00

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) {
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