From b6d19963f97daa5415811e96f53babc8bc906e6d Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Sun, 5 Jan 2020 21:30:23 +0100 Subject: [PATCH] Removed useless debug code --- gamemode/engine/lib/server/sv_inventory.lua | 1 - gamemode/engine/lib/server/sv_networking.lua | 1 - 2 files changed, 2 deletions(-) diff --git a/gamemode/engine/lib/server/sv_inventory.lua b/gamemode/engine/lib/server/sv_inventory.lua index 7cab3fb..9dcea06 100644 --- a/gamemode/engine/lib/server/sv_inventory.lua +++ b/gamemode/engine/lib/server/sv_inventory.lua @@ -103,7 +103,6 @@ function Quantum.Server.Inventory.FindStackable( char, item ) local itemInSlotAmount for i, item2 in pairs( inv ) do itemInSlotAmount = item2[2] || 1 - print( itemInSlotAmount, item.stack ) if( item2[1] == item.id && itemInSlotAmount < item.stack ) then -- if the item is stackable and it is the same item return i -- return its index end diff --git a/gamemode/engine/lib/server/sv_networking.lua b/gamemode/engine/lib/server/sv_networking.lua index 7bd15dd..b763b04 100644 --- a/gamemode/engine/lib/server/sv_networking.lua +++ b/gamemode/engine/lib/server/sv_networking.lua @@ -126,7 +126,6 @@ function Quantum.Net.Inventory.SetItem( pl, index, itemid, amount ) -- sends a i Quantum.WriteIntcode( Quantum.IntCode.SET_ITEM ) -- write the opcode first net.WriteInt( index, Quantum.calculateNeededBits( Quantum.Inventory.Size ) ) net.WriteString( itemid ) - print( amount, Quantum.calculateNeededBits( Quantum.Inventory.MaxStackSize ) ) net.WriteInt( amount, Quantum.calculateNeededBits( Quantum.Inventory.MaxStackSize ) ) net.Send( pl )