add leaves to replaceable blocks for structures

This commit is contained in:
p2r3
2025-08-29 23:36:19 +03:00
parent 849adf0568
commit ec7bb49876

View File

@@ -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);
}