mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
add leaves to replaceable blocks for structures
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
#include "structures.h"
|
#include "structures.h"
|
||||||
|
|
||||||
void setBlockIfReplaceable (short x, uint8_t y, short z, uint8_t block) {
|
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);
|
makeBlockChange(x, y, z, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user