From e17ef3dbf6300be691bbd7e37878fa03fcc302fe Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 16 Mar 2015 19:52:46 +0100 Subject: [PATCH] Added minetest.register alias on mirror and fixed seawrecks' crash - Created alias from returmirror:mirror_inactive to returnmirror:portal so the players will be able to find this item in unified_inventory's search menu by typing "portal" - Fixed a very strange and unhandled crash in seawrecks, caused apparently by minetest.add_node. Used minetest.set_node instead and everything is fine --- mods/returnmirror/init.lua | 2 ++ mods/sea/seawrecks/init.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/returnmirror/init.lua b/mods/returnmirror/init.lua index 4d687e58..f687376e 100644 --- a/mods/returnmirror/init.lua +++ b/mods/returnmirror/init.lua @@ -125,3 +125,5 @@ minetest.register_craft({ {"default:diamondblock", "default:nyancat", "default:diamondblock"}, }, }) + +minetest.register_alias("returnmirror:portal","returnmirror:mirror_inactive") diff --git a/mods/sea/seawrecks/init.lua b/mods/sea/seawrecks/init.lua index 03d257f1..cf060a35 100755 --- a/mods/sea/seawrecks/init.lua +++ b/mods/sea/seawrecks/init.lua @@ -950,7 +950,7 @@ local yp = {x = pos.x, y = pos.y + 8, z = pos.z} pos.y = pos.y - 7 pos.x = pos.x +16 pos.z = pos.z +3 - minetest.add_node(pos, {name = "seawrecks:ubootchest"}) + minetest.set_node(pos, {name = "seawrecks:ubootchest"}) else return