mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Properly initialize TPlayerStats after copying them.
This commit is contained in:
1 parent
d92b0add32
commit
d4132485d1
1 file changed
+1
-2
@@ -6,7 +6,6 @@ import cpw.mods.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
|
||||
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;
|
||||
@@ -205,7 +204,7 @@ public class TPlayerHandler
|
||||
stats.hunger = playerData.hunger;
|
||||
}
|
||||
|
||||
stats.player = new WeakReference<EntityPlayer>(entityplayer);
|
||||
stats.init(entityplayer, entityplayer.worldObj);
|
||||
stats.armor.recalculateHealth(entityplayer, stats);
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user