mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fix for #545
This commit is contained in:
parent
fe585d27d8
commit
751cb0ca8b
@ -357,7 +357,7 @@ function onUseWith(clickedWidget, mousePosition)
|
|||||||
if clickedWidget:getClassName() == 'UIGameMap' then
|
if clickedWidget:getClassName() == 'UIGameMap' then
|
||||||
local tile = clickedWidget:getTile(mousePosition)
|
local tile = clickedWidget:getTile(mousePosition)
|
||||||
if tile then
|
if tile then
|
||||||
if selectedThing:isFluidContainer() then
|
if selectedThing:isFluidContainer() or selectThing:isMultiUse() then
|
||||||
g_game.useWith(selectedThing, tile:getTopMultiUseThing())
|
g_game.useWith(selectedThing, tile:getTopMultiUseThing())
|
||||||
else
|
else
|
||||||
g_game.useWith(selectedThing, tile:getTopUseThing())
|
g_game.useWith(selectedThing, tile:getTopUseThing())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user