use luacontroller_LED instead of microcontroller_LED to prevent breaking the digistuff mod which inherits it. I hope no mods inherit microcontroller LED.
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 838 B After Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 851 B |
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 846 B |
|
@ -20,10 +20,10 @@ plg.register_nodes = function(template)
|
||||||
|
|
||||||
-- build top texture string
|
-- build top texture string
|
||||||
local texture = "jeija_fpga_top.png"
|
local texture = "jeija_fpga_top.png"
|
||||||
if a == 1 then texture = texture .. "^jeija_microcontroller_LED_A.png" end
|
if a == 1 then texture = texture .. "^jeija_luacontroller_LED_A.png" end
|
||||||
if b == 1 then texture = texture .. "^jeija_microcontroller_LED_B.png" end
|
if b == 1 then texture = texture .. "^jeija_luacontroller_LED_B.png" end
|
||||||
if c == 1 then texture = texture .. "^jeija_microcontroller_LED_C.png" end
|
if c == 1 then texture = texture .. "^jeija_luacontroller_LED_C.png" end
|
||||||
if d == 1 then texture = texture .. "^jeija_microcontroller_LED_D.png" end
|
if d == 1 then texture = texture .. "^jeija_luacontroller_LED_D.png" end
|
||||||
ndef.tiles[1] = texture
|
ndef.tiles[1] = texture
|
||||||
ndef.inventory_image = texture
|
ndef.inventory_image = texture
|
||||||
|
|
||||||
|
|
|
@ -818,16 +818,16 @@ for d = 0, 1 do
|
||||||
local node_name = BASENAME..cid
|
local node_name = BASENAME..cid
|
||||||
local top = "jeija_luacontroller_top.png"
|
local top = "jeija_luacontroller_top.png"
|
||||||
if a == 1 then
|
if a == 1 then
|
||||||
top = top.."^jeija_microcontroller_LED_A.png"
|
top = top.."^jeija_luacontroller_LED_A.png"
|
||||||
end
|
end
|
||||||
if b == 1 then
|
if b == 1 then
|
||||||
top = top.."^jeija_microcontroller_LED_B.png"
|
top = top.."^jeija_luacontroller_LED_B.png"
|
||||||
end
|
end
|
||||||
if c == 1 then
|
if c == 1 then
|
||||||
top = top.."^jeija_microcontroller_LED_C.png"
|
top = top.."^jeija_luacontroller_LED_C.png"
|
||||||
end
|
end
|
||||||
if d == 1 then
|
if d == 1 then
|
||||||
top = top.."^jeija_microcontroller_LED_D.png"
|
top = top.."^jeija_luacontroller_LED_D.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
local groups
|
local groups
|
||||||
|
|
|
@ -12,16 +12,16 @@ for d = 0, 1 do
|
||||||
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
|
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
|
||||||
local top = "jeija_microcontroller_top.png"
|
local top = "jeija_microcontroller_top.png"
|
||||||
if tostring(a) == "1" then
|
if tostring(a) == "1" then
|
||||||
top = top.."^jeija_microcontroller_LED_A.png"
|
top = top.."^jeija_luacontroller_LED_A.png"
|
||||||
end
|
end
|
||||||
if tostring(b) == "1" then
|
if tostring(b) == "1" then
|
||||||
top = top.."^jeija_microcontroller_LED_B.png"
|
top = top.."^jeija_luacontroller_LED_B.png"
|
||||||
end
|
end
|
||||||
if tostring(c) == "1" then
|
if tostring(c) == "1" then
|
||||||
top = top.."^jeija_microcontroller_LED_C.png"
|
top = top.."^jeija_luacontroller_LED_C.png"
|
||||||
end
|
end
|
||||||
if tostring(d) == "1" then
|
if tostring(d) == "1" then
|
||||||
top = top.."^jeija_microcontroller_LED_D.png"
|
top = top.."^jeija_luacontroller_LED_D.png"
|
||||||
end
|
end
|
||||||
local groups
|
local groups
|
||||||
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then
|
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then
|
||||||
|
|