From eae8b782a82cff0d665909f3905618b8fd8cb893 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 9 Dec 2017 15:39:27 +0100 Subject: [PATCH] 64 nodes above the Nether are non-deadly void --- mods/CORE/mcl_worlds/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/CORE/mcl_worlds/init.lua b/mods/CORE/mcl_worlds/init.lua index da5999444..2020042e1 100644 --- a/mods/CORE/mcl_worlds/init.lua +++ b/mods/CORE/mcl_worlds/init.lua @@ -16,7 +16,10 @@ function mcl_worlds.is_in_void(pos) if pos.y < mcl_vars.mg_overworld_min and pos.y > mcl_vars.mg_end_max then void_deadly = pos.y < mcl_vars.mg_overworld_min - deadly_tolerance elseif pos.y < mcl_vars.mg_end_min and pos.y > mcl_vars.mg_nether_max then - void_deadly = pos.y < mcl_vars.mg_end_min - deadly_tolerance + -- The void between End and Nether. Like usual, but here, the void + -- *above* the Nether also has a small tolerance area, so player + -- can fly above the Nether without getting hurt instantly. + void_deadly = (pos.y < mcl_vars.mg_end_min - deadly_tolerance) and (pos.y > mcl_vars.mg_nether_max + deadly_tolerance) elseif pos.y < mcl_vars.mg_nether_min then void_deadly = pos.y < mcl_vars.mg_nether_min - deadly_tolerance end