From 025ef8554016a2647f31244cf6413d80dba91847 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 25 Mar 2018 12:58:22 -0400 Subject: Fix #3 Allows pacs that have been loaded on join to be removed Also loads player data much sooner after the player spawns in. --- gamemode/core/inventory/common/items.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gamemode/core/inventory/common') diff --git a/gamemode/core/inventory/common/items.lua b/gamemode/core/inventory/common/items.lua index 0a32f27..65d8e4a 100644 --- a/gamemode/core/inventory/common/items.lua +++ b/gamemode/core/inventory/common/items.lua @@ -3,6 +3,7 @@ --@shared items.lua --@alias items +local log = nrequire("log.lua") local items = {} -- local function drop_provided(ent,invid,frompos) @@ -28,6 +29,7 @@ function items.DropItem(ent_or_tbl,invid,frompos) end ]] assert(CLIENT,"requested to drop an item when we are not the client!") + log.debug("Drop item was requested, ent_or_tbl is" .. tostring(ent_or_tbl)) net.Start("art_RequestInvDrop") net.WriteEntity(ent_or_tbl) net.WriteUInt(invid,32) -- cgit v1.2.3-70-g09d2