Version 0.998 BETA, mostly bug fixes

This commit is contained in:
OTCv8
2019-10-26 17:38:55 +02:00
parent 46e615596a
commit 95f7b39a10
11 changed files with 21 additions and 10 deletions

View File

@@ -279,10 +279,11 @@ end
function onUseWith(clickedWidget, mousePosition)
if clickedWidget:getClassName() == 'UIGameMap' then
local tile = clickedWidget:getTile(mousePosition)
if tile then
if selectedThing:isFluidContainer() then
if tile then
if selectedThing:isFluidContainer() or selectedThing:isMultiUse() then
g_game.useWith(selectedThing, tile:getTopMultiUseThing(), selectedSubtype)
else
print("normal")
g_game.useWith(selectedThing, tile:getTopUseThing(), selectedSubtype)
end
end