From d32ef8ef0a21c27debcbb5b1922afb25bae48115 Mon Sep 17 00:00:00 2001 From: "theo@manjaro" Date: Fri, 4 Mar 2022 14:19:03 +0100 Subject: [PATCH] Avoir sending nil values as mouse coords --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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