Bug fix health stat storage in server side inventory mode.

This commit is contained in:
Zidonuke 2011-12-21 03:50:15 -05:00
parent 11473493e4
commit 0cdafc0e81
2 changed files with 12 additions and 0 deletions

View file

@ -478,6 +478,8 @@ namespace TShockAPI
public void CopyInventory(TSPlayer player)
{
this.maxHealth = player.TPlayer.statLifeMax;
this.maxMana = player.TPlayer.statManaMax;
Item[] inventory = player.TPlayer.inventory;
Item[] armor = player.TPlayer.armor;
for (int i = 0; i < NetItem.maxNetInventory; i++)