Skip to content

Commit

Permalink
Additional null check on stats.armor
Browse files Browse the repository at this point in the history
  • Loading branch information
Cisien committed Feb 22, 2014
1 parent 9874908 commit 5d78b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/util/TEventHandler.java
Expand Up @@ -621,7 +621,7 @@ public void livingUpdate (LivingUpdateEvent event)
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++)
Expand Down

0 comments on commit 5d78b96

Please sign in to comment.