#41 Allow nether to be in the sky

fixes issue #41
(Now that the Nether no longer extends all the way to -31000)
This commit is contained in:
Treer 2021-03-13 16:37:12 +11:00
parent bafa4e8ea1
commit 3f4b014298

View File

@ -155,7 +155,7 @@ This opens to a truly hellish place, though for small mercies the air there is s
The expedition parties have found no diamonds or gold, and after an experienced search party failed to return from the trail of a missing expedition party, I must conclude this is a dangerous place.]], 10 * nether.FASTTRAVEL_FACTOR), The expedition parties have found no diamonds or gold, and after an experienced search party failed to return from the trail of a missing expedition party, I must conclude this is a dangerous place.]], 10 * nether.FASTTRAVEL_FACTOR),
is_within_realm = function(pos) -- return true if pos is inside the Nether is_within_realm = function(pos) -- return true if pos is inside the Nether
return pos.y < nether.DEPTH_CEILING return pos.y < nether.DEPTH_CEILING and pos.y > nether.DEPTH_FLOOR
end, end,
find_realm_anchorPos = function(surface_anchorPos, player_name) find_realm_anchorPos = function(surface_anchorPos, player_name)