aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch
diff options
context:
space:
mode:
authorMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
committerMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
commitbee74680e607c2e29b038329f62181238911cd83 (patch)
tree708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch
parent0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff)
downloadPaper-softspoon.tar.gz
Paper-softspoon.zip
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch b/patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch
new file mode 100644
index 0000000000..bad8fd7e4b
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/BlockMushroom.patch
@@ -0,0 +1,30 @@
+--- a/net/minecraft/world/level/block/BlockMushroom.java
++++ b/net/minecraft/world/level/block/BlockMushroom.java
+@@ -20,6 +20,10 @@
+ import net.minecraft.world.phys.shapes.VoxelShape;
+ import net.minecraft.world.phys.shapes.VoxelShapeCollision;
+
++// CraftBukkit start
++import org.bukkit.TreeType;
++// CraftBukkit end
++
+ public class BlockMushroom extends BlockPlant implements IBlockFragilePlantElement {
+
+ public static final MapCodec<BlockMushroom> CODEC = RecordCodecBuilder.mapCodec((instance) -> {
+@@ -75,7 +79,7 @@
+ }
+
+ if (worldserver.isEmptyBlock(blockposition2) && iblockdata.canSurvive(worldserver, blockposition2)) {
+- worldserver.setBlock(blockposition2, iblockdata, 2);
++ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(worldserver, blockposition, blockposition2, iblockdata, 2); // CraftBukkit
+ }
+ }
+
+@@ -101,6 +105,7 @@
+ return false;
+ } else {
+ worldserver.removeBlock(blockposition, false);
++ BlockSapling.treeType = (this == Blocks.BROWN_MUSHROOM) ? TreeType.BROWN_MUSHROOM : TreeType.BROWN_MUSHROOM; // CraftBukkit
+ if (((WorldGenFeatureConfigured) ((Holder) optional.get()).value()).place(worldserver, worldserver.getChunkSource().getGenerator(), randomsource, blockposition)) {
+ return true;
+ } else {