diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..b501650 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,10 @@ +name: luacheck +on: [push, pull_request] +jobs: + luacheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Luacheck + uses: lunarmodules/luacheck@master \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..1036838 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,9 @@ +read_globals = { + "minetest", + "unifieddyes", + "default" +} + +globals = { + "unifiedbricks" +} \ No newline at end of file diff --git a/init.lua b/init.lua index b15f0bd..09c011b 100644 --- a/init.lua +++ b/init.lua @@ -12,6 +12,11 @@ unifiedbricks.old_static_list = {} unifiedbricks.old_static_list_formals = {} unifiedbricks.old_colouredstonebrick_list = {} +minetest.register_alias("unifieddyes:white","unifieddyes:white_paint") +minetest.register_alias("unifieddyes:lightgrey","unifieddyes:lightgrey_paint") +minetest.register_alias("unifieddyes:grey","unifieddyes:grey_paint") +minetest.register_alias("unifieddyes:darkgrey","unifieddyes:darkgrey_paint") + local HUES = { "red", "orange", @@ -31,13 +36,6 @@ local HUES = { "lightgrey", "white" } -local TYPES = { - "clayblock_", - "clay_", - "brick_", - "brickblock_", - "multicolor_" -} local SATURATION = { "_s50", "" @@ -68,13 +66,6 @@ local FORMALHUES = { "Light grey", "White" } -local FORMALTYPES = { - " clay", - " clay lump", - " brick", - " bricks", - " multicolor bricks" -} local FORMALSATURATION = { " (low saturation)", "" @@ -190,7 +181,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", { "unifiedbricks_brickblock_multicolor_dark.png" }, overlay_tiles = { - { name = "unifiedbricks_mortar2.png", color = "white" } + { name = "unifiedbricks_mortar.png", color = "white" } }, paramtype = "light", paramtype2 = "color", @@ -225,7 +216,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", { "unifiedbricks_brickblock_multicolor_medium.png" }, overlay_tiles = { - { name = "unifiedbricks_mortar3.png", color = "white" } + { name = "unifiedbricks_mortar.png", color = "white" } }, paramtype = "light", paramtype2 = "color", @@ -260,7 +251,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_light", { "unifiedbricks_brickblock_multicolor_light.png" }, overlay_tiles = { - { name = "unifiedbricks_mortar4.png", color = "white" } + { name = "unifiedbricks_mortar.png", color = "white" } }, paramtype = "light", paramtype2 = "color", @@ -567,8 +558,8 @@ end for i = 1,17 do for j = 1,4 do if i > 12 then - formalname = FORMALHUES[i] - name = HUES[i] + local formalname = FORMALHUES[i] + local name = HUES[i] if j == 1 then unifiedbricks.register_old_static_block(name, formalname, "clayblock") elseif j == 4 then @@ -576,6 +567,7 @@ for i = 1,17 do end else for k = 1,4 do + local formalname, name if k == 4 then formalname = FORMALDARKNESS[k] .. FORMALHUES[i] name = DARKNESS[k] .. HUES[i] diff --git a/mod.conf b/mod.conf index ef88406..a52de5a 100644 --- a/mod.conf +++ b/mod.conf @@ -1,5 +1,3 @@ name = unifiedbricks -title = Unified Bricks description = This mod allows the user to re-color default bricks using Unified Dyes, and provides some pattern variations as well. -depends = default,unifieddyes -optional_depends = moreblocks +depends = default, bucket, unifieddyes, vessels diff --git a/textures/unifiedbricks_mortar2.png b/textures/unifiedbricks_mortar2.png deleted file mode 100644 index 2209987..0000000 Binary files a/textures/unifiedbricks_mortar2.png and /dev/null differ diff --git a/textures/unifiedbricks_mortar3.png b/textures/unifiedbricks_mortar3.png deleted file mode 100644 index 2209987..0000000 Binary files a/textures/unifiedbricks_mortar3.png and /dev/null differ diff --git a/textures/unifiedbricks_mortar4.png b/textures/unifiedbricks_mortar4.png deleted file mode 100644 index 2209987..0000000 Binary files a/textures/unifiedbricks_mortar4.png and /dev/null differ