From 950b0c09e3a00609ac5f0c7cc072bf208b6cb7db Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 8 Feb 2017 23:43:13 +0100 Subject: [PATCH] Allow other mods to register fences --- mods/mcl_fences/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/mcl_fences/init.lua b/mods/mcl_fences/init.lua index 80cd5f378..f0070b16d 100644 --- a/mods/mcl_fences/init.lua +++ b/mods/mcl_fences/init.lua @@ -27,7 +27,7 @@ mcl_fences.register_fence = function(id, fence_name, fence_gate_name, texture, f table.insert(connects_to, "group:solid") table.insert(connects_to, "group:fence") local id_gate = id .. "_gate" - minetest.register_node("mcl_fences:"..id, { + minetest.register_node(minetest.get_current_modname()..":"..id, { description = fence_name, tiles = {texture}, inventory_image = "mcl_fences_fence_mask.png^" .. texture .. "^mcl_fences_fence_mask.png^[makealpha:255,126,126", @@ -89,7 +89,7 @@ mcl_fences.register_fence = function(id, fence_name, fence_gate_name, texture, f end groups.mesecon_effector_on = 1 - minetest.register_node("mcl_fences:"..id_gate.."_open", { + minetest.register_node(minetest.get_current_modname()..":"..id_gate.."_open", { tiles = {texture}, paramtype = "light", paramtype2 = "facedir", @@ -133,7 +133,7 @@ mcl_fences.register_fence = function(id, fence_name, fence_gate_name, texture, f groups.mesecon_effector_on = nil groups.mesecon_effector_off = nil - minetest.register_node("mcl_fences:"..id_gate, { + minetest.register_node(minetest.get_current_modname()..":"..id_gate, { description = fence_gate_name, tiles = {texture}, inventory_image = "mcl_fences_fence_gate_mask.png^" .. texture .. "^mcl_fences_fence_gate_mask.png^[makealpha:255,126,126",