SPIGOT-7581: Fix typo in BlockMushroom

This commit is contained in:
md_5 2024-02-09 19:00:25 +11:00
parent ea14b7d901
commit 7e43f3b164
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -24,7 +24,7 @@
return false;
} else {
worldserver.removeBlock(blockposition, false);
+ BlockSapling.treeType = (this == Blocks.BROWN_MUSHROOM) ? TreeType.BROWN_MUSHROOM : TreeType.BROWN_MUSHROOM; // CraftBukkit
+ BlockSapling.treeType = (this == Blocks.BROWN_MUSHROOM) ? TreeType.BROWN_MUSHROOM : TreeType.RED_MUSHROOM; // CraftBukkit
if (((WorldGenFeatureConfigured) ((Holder) optional.get()).value()).place(worldserver, worldserver.getChunkSource().getGenerator(), randomsource, blockposition)) {
return true;
} else {