Skip to content

Commit

Permalink
Properly initialize TPlayerStats after copying them.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qowyn committed Oct 5, 2014
1 parent d92b0ad commit d413248
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/tconstruct/armor/player/TPlayerHandler.java
Expand Up @@ -6,7 +6,6 @@
import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerRespawnEvent;
import cpw.mods.fml.relauncher.Side;
import java.io.*;
import java.lang.ref.WeakReference;
import java.net.*;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -205,7 +204,7 @@ public void onPlayerRespawn (EntityPlayer entityplayer)
stats.hunger = playerData.hunger;
}

stats.player = new WeakReference<EntityPlayer>(entityplayer);
stats.init(entityplayer, entityplayer.worldObj);
stats.armor.recalculateHealth(entityplayer, stats);

/*
Expand Down

0 comments on commit d413248

Please sign in to comment.