mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-28 19:03:51 -07:00
16
paper-server/nms-patches/BlockFungi.patch
Normal file
16
paper-server/nms-patches/BlockFungi.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
--- a/net/minecraft/server/BlockFungi.java
|
||||
+++ b/net/minecraft/server/BlockFungi.java
|
||||
@@ -38,6 +38,13 @@
|
||||
|
||||
@Override
|
||||
public void a(WorldServer worldserver, Random random, BlockPosition blockposition, IBlockData iblockdata) {
|
||||
+ // CraftBukkit start
|
||||
+ if (this == Blocks.WARPED_FUNGUS) {
|
||||
+ BlockSapling.treeType = org.bukkit.TreeType.WARPED_FUNGUS;
|
||||
+ } else if (this == Blocks.CRIMSON_FUNGUS) {
|
||||
+ BlockSapling.treeType = org.bukkit.TreeType.CRIMSON_FUNGUS;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
((WorldGenFeatureConfigured) this.b.get()).a(worldserver, worldserver.getStructureManager(), worldserver.getChunkProvider().getChunkGenerator(), random, blockposition);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user