From 4d4d42079179a5659b172d0a6cd12aadfac00c3c Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 16:45:00 -0500 Subject: Add luacheck configuration --- .luacheckrc | 7 +++++++ init.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..9ced1c8 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,7 @@ +max_line_length = 160 + +read_globals = { + "minetest", + "unifieddyes", + "default", +} diff --git a/init.lua b/init.lua index fa9e5f7..04315da 100644 --- a/init.lua +++ b/init.lua @@ -3,7 +3,7 @@ minetest.register_node("solidcolor:block", { tiles = {"solidcolor_white.png"}, is_ground_content = false, groups = {dig_immediate=2,ud_param2_colorable=1}, - sounds = (default and default.node_sound_stone_defaults()), + sounds = (minetest.global_exists("default") and default.node_sound_stone_defaults()), paramtype2 = "color", palette = "unifieddyes_palette_extended.png", on_construct = unifieddyes.on_construct, -- cgit v1.2.3