You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't believe you missed this one when you wrote CompatItemArmor.
ArmorMaterial in 1.10 sets repair material by assigning to ArmorMaterial.customCraftingMaterial. There is no setRepairItem() method.
ArmorMaterial in 1.11 uses ArmorMaterial.setRepairItem(itemstack) to set the repair material. There is no public field 'customCraftingMaterial' to assign to; it has been renamed and made private.
I can't believe you missed this one when you wrote CompatItemArmor.
See the problem? I solved it by writing a helper method; feel free to cut & paste it into a new 'Tools' class: https://github.com/Sinhika/SimpleCore/blob/dev1.9/src/main/java/alexndr/api/helpers/game/ArmorMaterialHelper.java
Internal comments separate the 1.10 version from the 1.11 version; ask if it's not clear.
The text was updated successfully, but these errors were encountered: