From 810357f81a178df7c732ca345b549d6d268be77c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Dec 2017 22:22:37 +0100 Subject: [PATCH] Rename end portal room to end portal shrine --- mods/MAPGEN/mcl_strongholds/init.lua | 2 +- mods/MAPGEN/mcl_structures/init.lua | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mods/MAPGEN/mcl_strongholds/init.lua b/mods/MAPGEN/mcl_strongholds/init.lua index d4c8681a..fa404f07 100644 --- a/mods/MAPGEN/mcl_strongholds/init.lua +++ b/mods/MAPGEN/mcl_strongholds/init.lua @@ -86,7 +86,7 @@ local generate_strongholds = function(minp, maxp) pos.z = maxp.z - 7 end - mcl_structures.call_struct(pos, "end_portal_room") + mcl_structures.call_struct(pos, "end_portal_shrine") strongholds[s].generated = true end end diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index c3b644aa..52f07485 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -40,8 +40,8 @@ mcl_structures.call_struct = function(pos, struct_style, rotation) return mcl_structures.generate_fossil(pos, rotation) elseif struct_style == "end_exit_portal" then return mcl_structures.generate_end_exit_portal(pos, rotation) - elseif struct_style == "end_portal_room" then - return mcl_structures.generate_end_portal_room(pos, rotation) + elseif struct_style == "end_portal_shrine" then + return mcl_structures.generate_end_portal_shrine(pos, rotation) end end @@ -125,7 +125,7 @@ mcl_structures.generate_end_exit_portal = function(pos) return minetest.place_schematic(pos, path, "0", nil, true) end -mcl_structures.generate_end_portal_room = function(pos) +mcl_structures.generate_end_portal_shrine = function(pos) local path = minetest.get_modpath("mcl_structures").."/schematics/mcl_structures_end_portal_room_simple.mts" local offset = {x=6, y=8, z=6} local size = {x=13, y=8, z=13} @@ -317,7 +317,7 @@ end -- Debug command minetest.register_chatcommand("spawnstruct", { - params = "desert_temple | desert_well | igloo | village | witch_hut | boulder | ice_spike_small | ice_spike_large | fossil | end_exit_portal | end_portal_room", + params = "desert_temple | desert_well | igloo | village | witch_hut | boulder | ice_spike_small | ice_spike_large | fossil | end_exit_portal | end_portal_shrine", description = "Generate a pre-defined structure near your position.", privs = {debug = true}, func = function(name, param) @@ -356,9 +356,9 @@ minetest.register_chatcommand("spawnstruct", { elseif param == "end_exit_portal" then mcl_structures.generate_end_exit_portal(pos) minetest.chat_send_player(name, "End exit portal placed.") - elseif param == "end_portal_room" then - mcl_structures.generate_end_portal_room(pos) - minetest.chat_send_player(name, "End portal room placed.") + elseif param == "end_portal_shrine" then + mcl_structures.generate_end_portal_shrine(pos) + minetest.chat_send_player(name, "End portal shrine placed.") elseif param == "" then minetest.chat_send_player(name, "Error: No structure type given. Please use “/spawnstruct ”.") errord = true -- 2.11.4.GIT