allow growing saplings on mud

This commit is contained in:
p2r3
2025-08-23 23:06:09 +03:00
parent aa74a55a19
commit a61f1fba45

View File

@@ -592,7 +592,8 @@ void handlePlayerUseItem (PlayerData *player, short x, short y, short z, uint8_t
if ( // Saplings can only grow when placed on these blocks if ( // Saplings can only grow when placed on these blocks
target_below == B_dirt || target_below == B_dirt ||
target_below == B_grass_block || target_below == B_grass_block ||
target_below == B_snowy_grass_block target_below == B_snowy_grass_block ||
target_below == B_mud
) { ) {
// Bone meal has a 25% chance of growing a tree from a sapling // Bone meal has a 25% chance of growing a tree from a sapling
if ((fast_rand() & 3) == 0) placeTreeStructure(x, y, z); if ((fast_rand() & 3) == 0) placeTreeStructure(x, y, z);