Fixed crash when equipping the bangle of comradery

This commit is contained in:
Sollace 2024-01-22 13:48:03 +00:00
parent dd9bec2a0c
commit 39672e5028
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 2 additions and 1 deletions

View file

@ -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) {

View file

@ -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());