3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 05:20:05 +01:00

[Bleeding] Prevent BlockSnow from recursively calling a physics update.

Dieser Commit ist enthalten in:
Tahg 2012-01-17 07:37:14 -05:00 committet von Erik Broes
Ursprung 1d4a9e1df5
Commit 387d7319bc

Datei anzeigen

@ -45,7 +45,8 @@ public class BlockSnow extends Block {
private boolean g(World world, int i, int j, int k) { private boolean g(World world, int i, int j, int k) {
if (!this.canPlace(world, i, j, k)) { if (!this.canPlace(world, i, j, k)) {
this.b(world, i, j, k, world.getData(i, j, k), 0); this.b(world, i, j, k, world.getData(i, j, k), 0);
world.setTypeId(i, j, k, 0); world.setRawTypeId(i, j, k, 0); // CraftBukkit
world.notify(i, j, k); // CraftBukkit - Notfiy clients of the reversion
return false; return false;
} else { } else {
return true; return true;