From 192582a99795d335f2d438f9e5bdd6afd4174f4b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 27 Aug 2019 16:06:08 +0200 Subject: [PATCH] Move player a bit deeper into the biome in adjust --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index 4ab79fc..9ddf7b3 100644 --- a/init.lua +++ b/init.lua @@ -63,10 +63,16 @@ local function adjust_pos_to_biome_limits(pos, biome_id) if bpos[ax] < min then out_of_bounds = true bpos[ax] = min + if max-min > 16 then + bpos[ax] = math.max(bpos[ax] + 8, -playable_limit) + end end if bpos[ax] > max then out_of_bounds = true bpos[ax] = max + if max-min > 16 then + bpos[ax] = math.min(bpos[ax] - 8, playable_limit) + end end end return bpos, out_of_bounds