2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockFungi.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockFungi.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -74,6 +74,13 @@
|
2020-07-01 01:50:58 +02:00
|
|
|
@Override
|
2022-06-07 18:00:00 +02:00
|
|
|
public void performBonemeal(WorldServer worldserver, RandomSource randomsource, BlockPosition blockposition, IBlockData iblockdata) {
|
2022-12-07 17:00:00 +01:00
|
|
|
this.getFeature(worldserver).ifPresent((holder) -> {
|
|
|
|
+ // 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) holder.value()).place(worldserver, worldserver.getChunkSource().getGenerator(), randomsource, blockposition);
|
|
|
|
});
|
2020-07-01 01:50:58 +02:00
|
|
|
}
|