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 --- init.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'init.lua') 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") -- cgit v1.2.3