no health anti cheat when healing

This commit is contained in:
hydrant
2021-04-11 02:36:44 +02:00
parent 4126e22514
commit 34726abc04
8 changed files with 24 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
amountToAdd = 100 - player.Health;
}
player.Health += amountToAdd;
player.SafeSetHealth(player.Health + amountToAdd);
player.SendNotification("Du hast ein/einen ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~gegessen.", false);
InventoryManager.RemoveUserItem(player.GetUser(), uItem, 1);
}