From 236b4004fc64c88dc01ce845d5b4e3023b2e4710 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Sun, 9 Jan 2022 02:39:24 +0100 Subject: [PATCH] Glurability - Fixed Super Glue not showing a correct damage bar --- src/main/java/com/simibubi/create/AllItems.java | 2 ++ .../structureMovement/glue/SuperGlueItem.java | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/simibubi/create/AllItems.java b/src/main/java/com/simibubi/create/AllItems.java index f0630ae58..a4086c516 100644 --- a/src/main/java/com/simibubi/create/AllItems.java +++ b/src/main/java/com/simibubi/create/AllItems.java @@ -226,6 +226,8 @@ public class AllItems { .register(); public static final ItemEntry SUPER_GLUE = REGISTRATE.item("super_glue", SuperGlueItem::new) + .properties(p -> p.stacksTo(1) + .durability(99)) .register(); public static final ItemEntry MINECART_COUPLING = diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/glue/SuperGlueItem.java b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/glue/SuperGlueItem.java index 27c2944a6..d32adf0ec 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/glue/SuperGlueItem.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/glue/SuperGlueItem.java @@ -31,16 +31,6 @@ public class SuperGlueItem extends Item { return true; } - @Override - public int getMaxDamage(ItemStack stack) { - return 99; - } - - @Override - public int getItemStackLimit(ItemStack stack) { - return 1; - } - @Override public InteractionResult useOn(UseOnContext context) { BlockPos blockpos = context.getClickedPos();