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

@ -161,6 +161,11 @@ namespace TShockAPI
args.Player.IgnoreActionsForCheating = true;
}
if (args.Player.IsLoggedIn)
{
args.Player.PlayerData.maxHealth = max;
}
return false;
}
@ -175,6 +180,11 @@ namespace TShockAPI
args.Player.IgnoreActionsForCheating = true;
}
if (args.Player.IsLoggedIn)
{
args.Player.PlayerData.maxMana = max;
}
return false;
}