Try fix saving money Hanfverkauf

This commit is contained in:
CroniX
2021-05-29 09:47:53 +02:00
parent c975b744c2
commit 093ceecf5c

View File

@@ -646,6 +646,7 @@ namespace ReallifeGamemode.Server.Managers
var price = amount * CANNABIS_PRICE;
user.Handmoney += price;
InventoryManager.RemoveUserItem(user, cannabisUserItem, amount);
dbContext.SaveChanges();
logger.LogInformation("Player {0} sold {1} cannabis to the server for {2} dollars", player.Name, amount, price);