From 424427fd4c7b0457b5e4e4b3ed16cfef1d74b989 Mon Sep 17 00:00:00 2001 From: Flanks255 <32142731+Flanks255@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:30:55 -0600 Subject: [PATCH] Explicitly made the Drill unbreakable. --- .../de/ellpeck/actuallyadditions/mod/items/DrillItem.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/DrillItem.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/DrillItem.java index c147d5e78..b26502066 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/DrillItem.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/DrillItem.java @@ -53,11 +53,7 @@ import net.neoforged.neoforge.items.IItemHandler; import net.neoforged.neoforge.items.IItemHandlerModifiable; import javax.annotation.Nonnull; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.UUID; +import java.util.*; public class DrillItem extends ItemEnergy { public static final int HARVEST_LEVEL = 4; @@ -70,6 +66,7 @@ public class DrillItem extends ItemEnergy { public DrillItem() { super(ActuallyItems.defaultProps() .stacksTo(1) + .component(DataComponents.UNBREAKABLE, new Unbreakable(false)) .component(DataComponents.TOOL, Tiers.NETHERITE.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_DRILL)) , 250000, 1000);