From 0f66cfbb9c3d7db8f854ca06b7c1d61bdd825286 Mon Sep 17 00:00:00 2001 From: two-six Date: Thu, 12 Oct 2023 20:36:42 +0200 Subject: [PATCH] Fix --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 666a0ed..2569be0 100644 --- a/main.go +++ b/main.go @@ -79,7 +79,7 @@ func (m *neko) Update() error { // Prevents neko from being stuck on the side of the screen // or randomly travelling to another monitor m.x = max(0, min(m.x, monitorWidth)) - m.y = max(0, min(m.y, monitorWidth)) + m.y = max(0, min(m.y, monitorHeight)) if m.x < 0 { m.x = 0 } else if m.x >= monitorWidth {