mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
bind g_map.getSpectators
This commit is contained in:
@@ -21,7 +21,7 @@ local function onUseWithMouseRelease(self, mousePosition, mouseButton)
|
||||
if mouseButton == MouseLeftButton then
|
||||
local clickedWidget = Game.gameUi:recursiveGetChildByPos(mousePosition)
|
||||
if clickedWidget then
|
||||
if clickedWidget:getClassName() == 'Tile' then
|
||||
if clickedWidget:getClassName() == 'UIMap' then
|
||||
local tile = clickedWidget:getTile(mousePosition)
|
||||
if tile then
|
||||
Game.useWith(Game.selectedThing, tile:getTopMultiUseThing())
|
||||
|
Reference in New Issue
Block a user