mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fix hotkeys error when selecting items from map
This commit is contained in:
parent
0e80d1bb0d
commit
d1812ae695
@ -149,8 +149,8 @@ function onChooseItemMouseRelease(self, mousePosition, mouseButton)
|
|||||||
local tile = clickedWidget:getTile(mousePosition)
|
local tile = clickedWidget:getTile(mousePosition)
|
||||||
if tile then
|
if tile then
|
||||||
local thing = tile:getTopMoveThing()
|
local thing = tile:getTopMoveThing()
|
||||||
if thing then
|
if thing and thing:isItem() then
|
||||||
item = thing:isItem()
|
item = thing
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif clickedWidget:getClassName() == 'UIItem' and not clickedWidget:isVirtual() then
|
elseif clickedWidget:getClassName() == 'UIItem' and not clickedWidget:isVirtual() then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user