Skip to content

Commit

Permalink
Update potions.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano authored Apr 14, 2024
1 parent 630f0fd commit 38f1aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/scripts/actions/items/potions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function flaskPotion.onUse(player, item, fromPosition, target, toPosition, isHot
if not deactivatedFlasks then
local container = Container(item:getParent().uid)
if container then
local inbox = player:getSlotItem(CONST_SLOT_STORE_INBOX)
if fromPosition.x == CONTAINER_POSITION and container ~= inbox and container:getEmptySlots() ~= 0 then
local storeInbox = player:getSlotItem(CONST_SLOT_STORE_INBOX)
if fromPosition.x == CONTAINER_POSITION and container ~= storeInbox and container:getEmptySlots() ~= 0 then
container:addItem(potion.flask, 1)
else
player:addItem(potion.flask, 1)
Expand Down

0 comments on commit 38f1aca

Please sign in to comment.