aboutsummaryrefslogtreecommitdiff
path: root/gamemode/client/qtabs/cl_qinventory.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client/qtabs/cl_qinventory.lua')
-rw-r--r--gamemode/client/qtabs/cl_qinventory.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/gamemode/client/qtabs/cl_qinventory.lua b/gamemode/client/qtabs/cl_qinventory.lua
index 2879ac5..2ae70a2 100644
--- a/gamemode/client/qtabs/cl_qinventory.lua
+++ b/gamemode/client/qtabs/cl_qinventory.lua
@@ -10,6 +10,7 @@ local q = {}
local known_inventories = {}
local inventory_frames = {}
local invsheet
+q.known_inventories = known_inventories
local drawfloatinginventory = function(id, inventory)
--print("Drawing a floating inventory!")
@@ -65,13 +66,9 @@ net.Receive("art_ObserveInventory",function()
local datalen = net.ReadUInt(32)
local inital_data = net.ReadData(datalen)
local ownent = net.ReadEntity()
- --print("Owning ent of this inventory is", ownent)
assert(known_inventories[id] == nil, "Trying to observe the same inventory twice!",id)
- local tinv = inv.CreateInventoryFromData(inv_type,inital_data)
- tinv.Owner = ownent
+ local tinv = inv.CreateInventoryFromData(inv_type,inital_data,ownent)
tinv.id = id
- --print("Created new inventory:")
- --PrintTable(tinv)
known_inventories[id] = tinv
if id > 10 then
drawfloatinginventory(id,tinv)