Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
[Bleeding] Correctly generate giant mushrooms. Fixes BUKKIT-5066
This change fixes the reference to the local variables representing the block position during large mushroom generation.
Dieser Commit ist enthalten in:
Ursprung
97cb46f9f8
Commit
6f4d9bea2b
@ -168,7 +168,7 @@ public class WorldGenHugeMushroom extends WorldGenerator implements BlockSapling
|
|||||||
if (event == null) {
|
if (event == null) {
|
||||||
this.setTypeAndData(world, j2, j1, k2, Block.e(Block.b(Blocks.BIG_MUSHROOM_1) + l), l2);
|
this.setTypeAndData(world, j2, j1, k2, Block.e(Block.b(Blocks.BIG_MUSHROOM_1) + l), l2);
|
||||||
} else {
|
} else {
|
||||||
BlockState state = bukkitWorld.getBlockAt(i2, k1, k2).getState();
|
BlockState state = bukkitWorld.getBlockAt(j2, j1, k2).getState();
|
||||||
state.setTypeId(Block.b(Blocks.BIG_MUSHROOM_1) + l);
|
state.setTypeId(Block.b(Blocks.BIG_MUSHROOM_1) + l);
|
||||||
state.setData(new MaterialData(Block.b(Blocks.BIG_MUSHROOM_1) + l, (byte) l2));
|
state.setData(new MaterialData(Block.b(Blocks.BIG_MUSHROOM_1) + l, (byte) l2));
|
||||||
event.getBlocks().add(state);
|
event.getBlocks().add(state);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren