diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index fa791b4d..cd4fa795 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -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