mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 0.998 BETA, mostly bug fixes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user