Additional null check on stats.armor

This commit is contained in:
Chris committed 2014-02-22 14:17:26 -08:00
1 parent 9874908e97
commit 5d78b96352
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++)