mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
Prevent crashes with incorrectly initialized armor stuff #1668
This commit is contained in:
1 parent
13db0488b5
commit
83e71312c4
3 files changed
+11
-4
No files matched your search
@@ -65,8 +65,12 @@ public class TinkerArmorEvents
|
||||
return;
|
||||
|
||||
ItemStack glove = TPlayerStats.get(event.entityPlayer).armor.getStackInSlot(1);
|
||||
if(event.entityPlayer.worldObj.isRemote) // todo: sync extended inventory with clients so this stuff and rendering is done properly...
|
||||
glove = ArmorProxyClient.armorExtended.getStackInSlot(1);
|
||||
if(event.entityPlayer.worldObj.isRemote) { // todo: sync extended inventory with clients so this stuff and rendering is done properly...
|
||||
if(ArmorProxyClient.armorExtended != null)
|
||||
glove = ArmorProxyClient.armorExtended.getStackInSlot(1);
|
||||
else
|
||||
glove = null;
|
||||
}
|
||||
if(glove == null || !glove.hasTagCompound())
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user