diff --git a/src/init.luau b/src/init.luau index 8127e2b..ea33293 100644 --- a/src/init.luau +++ b/src/init.luau @@ -997,7 +997,7 @@ local function OnChildAdded(child: Instance): () -- To Character or Backpack end end - BackpackScript.BackpackItemAdded:Fire() + BackpackScript.BackpackItemAdded:Fire(slot) end local function OnChildRemoved(child: Instance): () -- From Character or Backpack @@ -1028,7 +1028,9 @@ local function OnChildRemoved(child: Instance): () -- From Character or Backpack ActiveHopper = nil :: any end - BackpackScript.BackpackItemRemoved:Fire() + if slot then + BackpackScript.BackpackItemRemoved:Fire(slot) + end if isInventoryEmpty() then BackpackScript.BackpackEmpty:Fire() end