More GetInventory changes.

This commit is contained in:
Filip Maj 2019-05-06 16:43:39 -04:00
parent 044d7e5207
commit b955c38a2a
6 changed files with 8 additions and 8 deletions

View file

@ -39,7 +39,7 @@ function onTrigger(player, argc, item, qty, location, name, lastName)
location = INVENTORY_NORMAL;
end;
local removed = player:GetInventory(location):RemoveItem(item, qty);
local removed = player:GetItemPackage(location):RemoveItem(item, qty);
if removed then -- RemoveItem() currently returns nothing for verification, this statement can't work
message = string.format("Removed item %u of kind %u to %s", item, location, player:GetName());