mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +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
|
@Override
|
||||||
public EquipmentSlot getSlotType(ItemStack stack) {
|
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) {
|
private boolean checkSignature(ItemStack stack, PlayerEntity player) {
|
||||||
|
|
|
@ -49,6 +49,7 @@ public abstract class WearableItem extends Item implements Equipment {
|
||||||
return ArmorMaterials.LEATHER.getEquipSound();
|
return ArmorMaterials.LEATHER.getEquipSound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public final EquipmentSlot getSlotType() {
|
public final EquipmentSlot getSlotType() {
|
||||||
return getSlotType(getDefaultStack());
|
return getSlotType(getDefaultStack());
|
||||||
|
|
Loading…
Reference in a new issue