mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
Merge pull request #496 from Cisien/patch-2
Additional null check on stats.armor
This commit is contained in:
commit
9a61de0941
1 file changed
+1
-1
@@ -621,7 +621,7 @@ public class TEventHandler
|
||||
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
||||
TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.getDisplayName());
|
||||
|
||||
if (stats != null)
|
||||
if (stats != null && stats.armor != null)
|
||||
{
|
||||
ArmorExtended armor = stats.armor;
|
||||
for (int i = 0; i < armor.getSizeInventory(); i++)
|
||||
|
||||
Reference in new issue
Block a user