From 42d71c5b71c4871e4bf700fdfc6a7f160927d973 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 21 Jul 2017 17:49:46 +0200 Subject: [PATCH] Use dot texture for singular redstone dust --- mods/ITEMS/REDSTONE/mesecons/wires.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/REDSTONE/mesecons/wires.lua b/mods/ITEMS/REDSTONE/mesecons/wires.lua index bdb7b6b4b..5f727481c 100644 --- a/mods/ITEMS/REDSTONE/mesecons/wires.lua +++ b/mods/ITEMS/REDSTONE/mesecons/wires.lua @@ -74,6 +74,8 @@ Read the help entries on the other redstone components to learn how redstone com local straight0_on = "redstone_redstone_dust_line0.png^[colorize:#FF0000:"..ratio_on local straight1_off = "redstone_redstone_dust_line0.png^[colorize:#FF0000:"..ratio_off local straight1_on = "redstone_redstone_dust_line0.png^[colorize:#FF0000:"..ratio_on + local dot_off = "redstone_redstone_dust_dot.png^[colorize:#FF0000:"..ratio_off + local dot_on = "redstone_redstone_dust_dot.png^[colorize:#FF0000:"..ratio_on if adjx and adjz and (xp + zp + xm + zm > 2) then table.insert(nodebox, box_bump1) @@ -85,7 +87,9 @@ Read the help entries on the other redstone components to learn how redstone com tiles_on = { crossing_on, crossing_on, straight0_on, straight1_on, straight0_on, straight1_on, } end if nodeid == "00000000" then - nodebox = {-8/16, -.5, -1/16, 8/16, -.5+1/16, 1/16} + nodebox = {-8/16, -.5, -8/16, 8/16, -.5+1/16, 8/16} + tiles_off = { dot_off, dot_off, "blank.png", "blank.png", "blank.png", "blank.png" } + tiles_on = { dot_on, dot_on, "blank.png", "blank.png", "blank.png", "blank.png" } end minetest.register_node("mesecons:wire_"..nodeid.."_off", {