Change logic to make more sense

This commit is contained in:
attackeight 2024-05-07 07:01:23 -04:00
parent f5c82022ce
commit 6b8794b4f3

View file

@ -58,7 +58,7 @@ public final class NetheriteDivingHandler {
}
public static boolean isNetheriteArmor(ItemStack stack) {
return stack.getItem() instanceof ArmorItem armorItem && armorItem.getMaterial().getRepairIngredient().getItems()[0].is(Tags.Items.INGOTS_NETHERITE);
return stack.getItem() instanceof ArmorItem armorItem && armorItem.isFireResistant();
}
public static void setBit(LivingEntity entity, EquipmentSlot slot) {