From 6861f2de8d445be26884983e4a74b677dd8c9f0f Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Sat, 7 Dec 2024 21:23:39 +0500 Subject: [PATCH] added limitation to top position --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 5556c1b..34368c8 100644 --- a/init.lua +++ b/init.lua @@ -68,7 +68,7 @@ local function choose_pos(pos) pos = randomplayer:get_pos() -- avoid striking underground - if pos.y < -20 then + if pos.y < -20 and pos.y > 1000 then return nil, nil end