Glurability

- Fixed Super Glue not showing a correct damage bar
This commit is contained in:
simibubi 2022-01-09 02:39:24 +01:00
parent 1e3fd9087e
commit 236b4004fc
2 changed files with 2 additions and 10 deletions

View file

@ -226,6 +226,8 @@ public class AllItems {
.register(); .register();
public static final ItemEntry<SuperGlueItem> SUPER_GLUE = REGISTRATE.item("super_glue", SuperGlueItem::new) public static final ItemEntry<SuperGlueItem> SUPER_GLUE = REGISTRATE.item("super_glue", SuperGlueItem::new)
.properties(p -> p.stacksTo(1)
.durability(99))
.register(); .register();
public static final ItemEntry<MinecartCouplingItem> MINECART_COUPLING = public static final ItemEntry<MinecartCouplingItem> MINECART_COUPLING =

View file

@ -31,16 +31,6 @@ public class SuperGlueItem extends Item {
return true; return true;
} }
@Override
public int getMaxDamage(ItemStack stack) {
return 99;
}
@Override
public int getItemStackLimit(ItemStack stack) {
return 1;
}
@Override @Override
public InteractionResult useOn(UseOnContext context) { public InteractionResult useOn(UseOnContext context) {
BlockPos blockpos = context.getClickedPos(); BlockPos blockpos = context.getClickedPos();