fix grounditem pickup
This commit is contained in:
@@ -39,7 +39,7 @@ namespace ReallifeGamemode.Server.Inventory
|
|||||||
UserItem existingItem = InventoryManager.UserHasThisItem(player, nearest.ItemId);
|
UserItem existingItem = InventoryManager.UserHasThisItem(player, nearest.ItemId);
|
||||||
var user = player.GetUser();
|
var user = player.GetUser();
|
||||||
if (player.HasAttachment("ammobox"))
|
if (player.HasAttachment("ammobox"))
|
||||||
{ player.SendNotification("~r~Du kannst momentan nichts tragen!", false); return; }
|
{ player.SendNotification("~r~Du kannst momentan nichts tragen!", false); return false; }
|
||||||
if (nearestItem.Gewicht * nearest.Amount + invWeight > 40000)
|
if (nearestItem.Gewicht * nearest.Amount + invWeight > 40000)
|
||||||
{
|
{
|
||||||
for (var i = 1; i <= nearest.Amount; i++)
|
for (var i = 1; i <= nearest.Amount; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user