Update portal.lua
Now using the globals
This commit is contained in:
parent
826a11ca13
commit
2d2da69052
1 changed files with 2 additions and 2 deletions
|
@ -44,12 +44,12 @@ This portal seemed to bring us to some kind of heavenly paradise.@1]],
|
|||
|
||||
is_within_realm = function(pos) -- return true if pos is inside the Aether
|
||||
-- TODO: Get these values from mod-wide constants.
|
||||
return (pos.y >= 250 and pos.y <= 1000)
|
||||
return (pos.y >= aether2.lower_bound and pos.y <= aether2.upper_bound)
|
||||
end,
|
||||
|
||||
find_realm_anchorPos = function(surface_anchorPos, player_name)
|
||||
-- TODO: implement a surface algorithm that finds land
|
||||
local destination_pos = {x = surface_anchorPos.x ,y = 500, z = surface_anchorPos.z}
|
||||
local destination_pos = {x = surface_anchorPos.x ,y = aether2.upper_bound, z = surface_anchorPos.z}
|
||||
|
||||
-- a y_factor of 0 makes the search ignore the altitude of the portals (as long as they are in the Aether)
|
||||
local existing_portal_location, existing_portal_orientation = nether.find_nearest_working_portal("aether_portal", destination_pos, 10, 0)
|
||||
|
|
Loading…
Reference in a new issue