Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fixed Pumpkins being reported as AIR in BlockPlace event when building snowmen. Fixes BUKKIT-697
Dieser Commit ist enthalten in:
Ursprung
6d67456970
Commit
879a87b1e0
@ -35,6 +35,7 @@ public class BlockPumpkin extends Block {
|
||||
|
||||
public void onPlace(World world, int i, int j, int k) {
|
||||
super.onPlace(world, i, j, k);
|
||||
if (world.suppressPhysics) return; // CraftBukkit
|
||||
if (world.getTypeId(i, j - 1, k) == Block.SNOW_BLOCK.id && world.getTypeId(i, j - 2, k) == Block.SNOW_BLOCK.id) {
|
||||
if (!world.isStatic && world.getServer().getServer().spawnAnimals) { // CraftBukkit - make snowmen obey spawning rules
|
||||
world.setTypeId(i, j, k, 0);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren