From 17d023a47fd5b88f3c8192ffa2517aea525ad855 Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Tue, 31 Dec 2019 02:33:07 +0100 Subject: [PATCH] Bug fixes for inventory system --- gamemode/engine/lib/server/sv_inventory.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gamemode/engine/lib/server/sv_inventory.lua b/gamemode/engine/lib/server/sv_inventory.lua index 24a7c82..4e6dcf0 100644 --- a/gamemode/engine/lib/server/sv_inventory.lua +++ b/gamemode/engine/lib/server/sv_inventory.lua @@ -70,7 +70,6 @@ local function sortItem( char, itemid, amount ) local itemInSlot = Quantum.Server.Inventory.GetSlotItem( char, index ) while( rest > stacksize ) do - print("######## rest:", rest ) count = count + 1 if( count == 1 ) then @@ -100,7 +99,6 @@ local function sortItem( char, itemid, amount ) end end end - print("######## rest:", rest ) Quantum.Server.Inventory.SetSlotItem( char, #inv + 1, itemid, rest ) end @@ -114,9 +112,6 @@ function Quantum.Server.Inventory.GiveItem( pl, itemid, amount ) sortItem( char, itemid, amount ) -- send net message to client about item update - - Quantum.Debug( "Inventory Result" ) - PrintTable( inv ) else Quantum.Debug( "Tried to give " .. tostring(pl) .. " a item but their inventory is full!" ) end