mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
allow growing saplings on mud
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user