Bug fix health stat storage in server side inventory mode.
This commit is contained in:
parent
11473493e4
commit
0cdafc0e81
2 changed files with 12 additions and 0 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue