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:
commit
7da1af0383
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user