1
0
Fork 0

[mcl_portals] fix warnings

doc-refactoring^2
AFCMS 2021-05-22 23:07:56 +02:00
parent a71a0e9161
commit c1a717238b
1 changed files with 8 additions and 5 deletions

View File

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