From 4043faa46862368a52e9feeeae49e1c68f9667ad Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 20:12:20 -0500 Subject: Add luacheck configuration, clean up a few bits, and fix texture warnings --- .luacheckrc | 7 +++++++ init.lua | 14 +++++++------- textures/display_blocks_redo_earth_crystal.png | Bin 3134 -> 4105 bytes textures/display_blocks_redo_metal_crystal.png | Bin 3244 -> 4102 bytes textures/display_blocks_redo_titanium_crystal.png | Bin 3055 -> 4046 bytes textures/display_blocks_redo_universia_crystal.png | Bin 3031 -> 4165 bytes 6 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..fd29db5 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,7 @@ +max_line_length = 160 + +read_globals = { + "minetest", + "default", + "vector", +} diff --git a/init.lua b/init.lua index 5bf85b0..6d0f403 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ local function regcraft(def) } if string.sub(def.craft_item,1,7) == "bucket:" then craft.replacements = {} - for i=1,3,1 do + for _=1,3,1 do table.insert(craft.replacements,{def.craft_item,"bucket:bucket_empty",}) end end @@ -240,7 +240,7 @@ else }, is_ground_content = true, }) - + minetest.register_node("display_blocks_redo:uranium_block",{ description = "Uranium Block", paramtype = "light", @@ -252,12 +252,12 @@ else "display_blocks_redo_uranium_block.png", }, }) - + minetest.register_craftitem("display_blocks_redo:uranium_dust",{ description = "Uranium Dust", inventory_image = "display_blocks_redo_uranium_dust.png", }) - + minetest.register_craft({ type = "shapeless", output = "display_blocks_redo:uranium_block", @@ -273,7 +273,7 @@ else "display_blocks_redo:uranium_dust", }, }) - + minetest.register_ore({ ore_type = "scatter", ore = "display_blocks_redo:uranium_ore", @@ -284,7 +284,7 @@ else y_min = -3000, y_max = -2000, }) - + minetest.register_ore({ ore_type = "scatter", ore = "display_blocks_redo:uranium_ore", @@ -295,7 +295,7 @@ else y_min = -31000, y_max = -5000, }) - + minetest.register_alias("display_blocks:uranium_ore","display_blocks_redo:uranium_ore") minetest.register_alias("display_blocks:uranium_dust","display_blocks_redo:uranium_dust") minetest.register_alias("display_blocks:uranium_block","display_blocks_redo:uranium_block") diff --git a/textures/display_blocks_redo_earth_crystal.png b/textures/display_blocks_redo_earth_crystal.png index 6211f05..5e0097e 100644 Binary files a/textures/display_blocks_redo_earth_crystal.png and b/textures/display_blocks_redo_earth_crystal.png differ diff --git a/textures/display_blocks_redo_metal_crystal.png b/textures/display_blocks_redo_metal_crystal.png index ebb2320..d908925 100644 Binary files a/textures/display_blocks_redo_metal_crystal.png and b/textures/display_blocks_redo_metal_crystal.png differ diff --git a/textures/display_blocks_redo_titanium_crystal.png b/textures/display_blocks_redo_titanium_crystal.png index aeff651..6b0f023 100644 Binary files a/textures/display_blocks_redo_titanium_crystal.png and b/textures/display_blocks_redo_titanium_crystal.png differ diff --git a/textures/display_blocks_redo_universia_crystal.png b/textures/display_blocks_redo_universia_crystal.png index 6529c5d..d55f1ef 100644 Binary files a/textures/display_blocks_redo_universia_crystal.png and b/textures/display_blocks_redo_universia_crystal.png differ -- cgit v1.2.3