Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Don't mine individual leaves, fixing Raph9213's leaf bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TacoTechnica committed Oct 4, 2021
1 parent 5924db5 commit fc01be2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/adris/altoclef/TaskCatalogue.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public class TaskCatalogue {
colorfulTasks("wool", color -> color.wool, (color, count) -> new CollectWoolTask(color.color, count));
// Misc greenery
shear("leaves", ItemHelper.itemsToBlocks(ItemHelper.LEAVES), ItemHelper.LEAVES).dontMineIfPresent();
woodTasks("leaves", woodItems -> woodItems.leaves, (woodItems, count) -> new ShearAndCollectBlockTask(woodItems.leaves, count, Block.getBlockFromItem(woodItems.leaves)));
for (CataloguedResource resource : woodTasks("leaves", woodItems -> woodItems.leaves, (woodItems, count) -> new ShearAndCollectBlockTask(woodItems.leaves, count, Block.getBlockFromItem(woodItems.leaves)))) {
resource.dontMineIfPresent();
}
shear("vine", Blocks.VINE, Items.VINE).dontMineIfPresent();
shear("grass", Blocks.GRASS, Items.GRASS).dontMineIfPresent();
shear("lily_pad", Blocks.LILY_PAD, Items.LILY_PAD).dontMineIfPresent();
Expand Down

0 comments on commit fc01be2

Please sign in to comment.