1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Add cherry log to android woodcutter

This commit is contained in:
Varian Anora 2023-07-21 09:49:51 +07:00
parent dc22e66589
commit e71e2c8559

View File

@ -162,6 +162,17 @@ public class WoodcutterAndroid extends ProgrammableAndroid {
}
}
if (Slimefun.getMinecraftVersion().isAtLeast(MinecraftVersion.MINECRAFT_1_20)) {
switch (logType) {
case CHERRY_LOG,
STRIPPED_CHERRY_LOG -> {
saplingType = Material.CHERRY_SAPLING;
soilRequirement = SlimefunTag.DIRT_VARIANTS::isTagged;
}
default -> {}
}
}
if (saplingType != null && soilRequirement != null) {
if (soilRequirement.test(block.getRelative(BlockFace.DOWN).getType())) {
// Replant the block