Fixed reinitialization of TPlayerStats after beating the end. Prevents potential crash.

This commit is contained in:
Qowyn committed 2014-10-05 22:05:15 +02:00
1 parent 312fd47360
commit 38da4d74bc
1 file changed
+3
@@ -77,6 +77,9 @@ public class TPlayerStats implements IExtendedEntityProperties, IPlayerExtendedI
@Override
public void init (Entity entity, World world)
{
this.player = new WeakReference<EntityPlayer>((EntityPlayer) entity);
this.armor.init((EntityPlayer) entity);
this.knapsack.init((EntityPlayer) entity);
}
public void copyFrom (TPlayerStats stats, boolean copyCalc)