[mcl_portals] fix warnings

This commit is contained in:
AFCMS 2021-05-22 23:07:56 +02:00
parent a71a0e9161
commit c1a717238b

View File

@ -1,10 +1,14 @@
local S = minetest.get_translator("mcl_portals")
-- Parameters
local SPAWN_MIN = mcl_vars.mg_end_min+70
local SPAWN_MAX = mcl_vars.mg_end_min+98
local table = table
local vector = vector
local math = math
local mg_name = minetest.get_mapgen_setting("mg_name")
-- Parameters
--local SPAWN_MIN = mcl_vars.mg_end_min+70
--local SPAWN_MAX = mcl_vars.mg_end_min+98
--local mg_name = minetest.get_mapgen_setting("mg_name")
local destroy_portal = function(pos)
local neighbors = {
@ -196,7 +200,6 @@ function mcl_portals.end_teleport(obj, pos)
end
end
local platform
build_end_portal_destination(platform_pos)
check_and_build_end_portal_destination(platform_pos)