Removed useless debug code

master
AlmTech Software 5 years ago
parent 84fbe253b0
commit b6d19963f9
  1. 1
      gamemode/engine/lib/server/sv_inventory.lua
  2. 1
      gamemode/engine/lib/server/sv_networking.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

@ -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 )

Loading…
Cancel
Save