Skip to content

Commit

Permalink
Merge pull request #3914 from variananora/fix/add-cherry-log-to-andro…
Browse files Browse the repository at this point in the history
…id-woodcutter

Add cherry log to android woodcutter (Fixes #3913)
  • Loading branch information
Sefiraat authored Aug 10, 2023
2 parents baef038 + e71e2c8 commit 7da1af0
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ private void replant(@Nonnull Block block) {
}
}

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
Expand Down

0 comments on commit 7da1af0

Please sign in to comment.