mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Fix NullPointerException with renderArmorExtras and Bspkrs's main menu.
This commit is contained in:
1 parent
2af24d5b2b
commit
1a818f6698
1 file changed
+2
-2
@@ -481,7 +481,7 @@ public class ArmorProxyClient extends ArmorProxyCommon {
|
||||
float limbSwingMod = player.limbSwing - player.limbSwingAmount * (1.0F - partialTick);
|
||||
//TPlayerStats stats = TPlayerStats.get(player);
|
||||
ArmorExtended armor = ArmorProxyClient.armorExtended; //TODO: Do this for every player, not just the client
|
||||
if (armor.inventory[1] != null) {
|
||||
if (armor != null && armor.inventory[1] != null) {
|
||||
Item item = armor.inventory[1].getItem();
|
||||
ModelBiped model = item.getArmorModel(player, armor.inventory[1], 4);
|
||||
|
||||
@@ -494,7 +494,7 @@ public class ArmorProxyClient extends ArmorProxyCommon {
|
||||
}
|
||||
}
|
||||
|
||||
if (armor.inventory[3] != null) {
|
||||
if (armor != null && armor.inventory[3] != null) {
|
||||
Item item = armor.inventory[3].getItem();
|
||||
ModelBiped model = item.getArmorModel(player, armor.inventory[3], 5);
|
||||
|
||||
|
||||
Reference in new issue
Block a user