mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed crash when equipping the bangle of comradery
This commit is contained in:
parent
dd9bec2a0c
commit
39672e5028
2 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class FriendshipBraceletItem extends WearableItem implements DyeableItem,
|
|||
|
||||
@Override
|
||||
public EquipmentSlot getSlotType(ItemStack stack) {
|
||||
return isSigned(stack) ? EquipmentSlot.CHEST : super.getSlotType();
|
||||
return isSigned(stack) ? EquipmentSlot.CHEST : super.getSlotType(stack);
|
||||
}
|
||||
|
||||
private boolean checkSignature(ItemStack stack, PlayerEntity player) {
|
||||
|
|
|
@ -49,6 +49,7 @@ public abstract class WearableItem extends Item implements Equipment {
|
|||
return ArmorMaterials.LEATHER.getEquipSound();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public final EquipmentSlot getSlotType() {
|
||||
return getSlotType(getDefaultStack());
|
||||
|
|
Loading…
Reference in a new issue