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:
parent
dc22e66589
commit
e71e2c8559
@ -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 (saplingType != null && soilRequirement != null) {
|
||||||
if (soilRequirement.test(block.getRelative(BlockFace.DOWN).getType())) {
|
if (soilRequirement.test(block.getRelative(BlockFace.DOWN).getType())) {
|
||||||
// Replant the block
|
// Replant the block
|
||||||
|
Loading…
Reference in New Issue
Block a user