Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Made it possible to block punching fire out through PlayerInteract event.
Dieser Commit ist enthalten in:
Ursprung
4bdc752acd
Commit
569b1d2746
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren