From ec7bb49876d93c4e1b0e73005bcd6e2edb4d35d6 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Fri, 29 Aug 2025 23:36:19 +0300 Subject: [PATCH] add leaves to replaceable blocks for structures --- src/structures.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures.c b/src/structures.c index d28fc71..6c9128f 100644 --- a/src/structures.c +++ b/src/structures.c @@ -7,7 +7,8 @@ #include "structures.h" void setBlockIfReplaceable (short x, uint8_t y, short z, uint8_t block) { - if (!isReplaceableBlock(getBlockAt(x, y, z))) return; + uint8_t target = getBlockAt(x, y, z); + if (!isReplaceableBlock(target) && target != B_oak_leaves) return; makeBlockChange(x, y, z, block); }