mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Glurability
- Fixed Super Glue not showing a correct damage bar
This commit is contained in:
parent
1e3fd9087e
commit
236b4004fc
2 changed files with 2 additions and 10 deletions
|
@ -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 =
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue