From f007240c211eb8e9abc9a47886171251a7a02e00 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Mon, 9 Sep 2019 18:46:26 +0200 Subject: [PATCH] fix duplicate scifi_nodes declaration --- common.lua | 2 +- doors.lua | 1 - models.lua | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/common.lua b/common.lua index e8e9c6a..8bb7a3d 100644 --- a/common.lua +++ b/common.lua @@ -1,6 +1,6 @@ -function scifi_nodes.get_switch_rules(param2) +scifi_nodes.get_switch_rules = function(param2) -- param2 = 2 local rules = { diff --git a/doors.lua b/doors.lua index 61f7dac..fcda20a 100644 --- a/doors.lua +++ b/doors.lua @@ -15,7 +15,6 @@ -- Retrieving mod settings -local scifi_nodes = {} scifi_nodes.doors_open_with_mesecon_only = minetest.settings:get_bool("scifi_nodes.doors_open_with_mesecon_only", false) -- Some aliases to deal with old namming policy -- diff --git a/models.lua b/models.lua index 25b6ce7..e1ec8e0 100644 --- a/models.lua +++ b/models.lua @@ -2,8 +2,6 @@ --Copyright (c) 2011-2015 Calinou and contributors. --Licensed under the zlib license. -scifi_nodes = {} - function scifi_nodes.register_slope(name, desc, texture, light) minetest.register_node("scifi_nodes:slope_"..name, { description = desc.." Slope", @@ -174,4 +172,3 @@ if minetest.global_exists("stairsplus") then }) end end -