From 72f1ba10e4dc620c2fabbdb0f8e306075ccdaa37 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 10 Apr 2022 23:44:34 -0400 Subject: [PATCH] add hd doors and gates --- .luacheckrc | 4 +++- homedecor_doors_and_gates/.luacheckrc | 23 ----------------------- homedecor_doors_and_gates/init.lua | 2 ++ homedecor_doors_and_gates/mod.conf | 4 ++-- 4 files changed, 7 insertions(+), 26 deletions(-) delete mode 100644 homedecor_doors_and_gates/.luacheckrc diff --git a/.luacheckrc b/.luacheckrc index 008b489f..e598014c 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -12,6 +12,7 @@ globals = { "lavalamp", "lrfurn", "signs_lib", + "homedecor_doors_and_gates", -- mod-deps "armor" @@ -35,5 +36,6 @@ read_globals = { "skins", "homedecor_doors_and_gates", "stairsplus", - "creative" + "creative", + "doors", } \ No newline at end of file diff --git a/homedecor_doors_and_gates/.luacheckrc b/homedecor_doors_and_gates/.luacheckrc deleted file mode 100644 index 935eeb19..00000000 --- a/homedecor_doors_and_gates/.luacheckrc +++ /dev/null @@ -1,23 +0,0 @@ -unused_args = false -allow_defined_top = true -max_comment_line_length = 999 - -read_globals = { - "DIR_DELIM", - "minetest", "core", - "unpack", - "dump", - table = { fields = { "copy", "getn" } }, - "vector", "nodeupdate", - "VoxelManip", "VoxelArea", - "PseudoRandom", "ItemStack", - "default", - "doors", - "mesecon", - "homedecor", - "screwdriver", -} - -globals = { -} - diff --git a/homedecor_doors_and_gates/init.lua b/homedecor_doors_and_gates/init.lua index 1662b632..578fd14d 100644 --- a/homedecor_doors_and_gates/init.lua +++ b/homedecor_doors_and_gates/init.lua @@ -1,5 +1,7 @@ -- Node definitions for Homedecor doors +if not minetest.get_modpath("doors") or not minetest.get_modpath("default") then return end + local S = minetest.get_translator("homedecor_doors_and_gates") local mesecons_mp = minetest.get_modpath("mesecons") homedecor_doors_and_gates = {} diff --git a/homedecor_doors_and_gates/mod.conf b/homedecor_doors_and_gates/mod.conf index fe1693ab..0c8fc055 100644 --- a/homedecor_doors_and_gates/mod.conf +++ b/homedecor_doors_and_gates/mod.conf @@ -1,4 +1,4 @@ name = homedecor_doors_and_gates description = Homedecor mod: doors and gates -depends = homedecor_common, default, basic_materials, dye, doors -optional_depends = homedecor_misc, homedecor_3d_extras, mesecons, screwdriver +depends = homedecor_common +optional_depends = homedecor_misc, homedecor_3d_extras, mesecons, screwdriver, default, doors