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…
Reference in New Issue