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

Merge pull request #3914 from variananora/fix/add-cherry-log-to-android-woodcutter

Add cherry log to android woodcutter (Fixes #3913)
This commit is contained in:
Sefiraat 2023-08-10 14:22:19 +01:00 committed by GitHub
commit 7da1af0383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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