diff --git a/main.lua b/main.lua index c2ed43c..8867648 100644 --- a/main.lua +++ b/main.lua @@ -71,5 +71,5 @@ function love.mousepressed(x,y,button,istouch,presses) if game.OS ~= "Horizon" then x,y = push:toGame(x,y) end - game:MouseCallback(x,y,presses) + if x~=nil and y~=nil then game:MouseCallback(x,y,presses) end end