Fix click regression
This commit is contained in:
parent
8a5195430a
commit
76d32b5493
|
@ -394,7 +394,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
|||
else
|
||||
if multiUseThing and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseRightButton and not g_mouse.isPressed(MouseLeftButton) then
|
||||
local player = g_game.getLocalPlayer()
|
||||
if creatureThing ~= player then
|
||||
if creatureThing and creatureThing ~= player then
|
||||
g_game.attack(creatureThing)
|
||||
return true
|
||||
elseif multiUseThing:isContainer() then
|
||||
|
|
Loading…
Reference in New Issue