update ilights and homedecor

This commit is contained in:
Vanessa Dannenberg 2019-09-19 19:29:02 -04:00
parent 017e17169e
commit 37af9265fa
3 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ local furnace_can_dig = function(pos,player)
end
function homedecor.register_furnace(name, furnacedef)
furnacedef.fire_fg = furnacedef.fire_bg or "default_furnace_fire_fg.png"
furnacedef.fire_fg = furnacedef.fire_fg or "default_furnace_fire_fg.png"
furnacedef.fire_bg = furnacedef.fire_bg or "default_furnace_fire_bg.png"
furnacedef.output_slots = furnacedef.output_slots or 4

View File

@ -103,7 +103,7 @@ if minetest.get_modpath("digilines") then
local setchan = meta:get_string("channel")
if setchan ~= channel then return end
if msg and msg ~= "" then
if msg and msg ~= "" and type(msg) == "string" then
local n = tonumber(msg)
local suff = word_to_bright[msg] or "invalid"

View File

@ -86,7 +86,7 @@ if minetest.get_modpath("digilines") then
local setchan = meta:get_string("channel")
if setchan ~= channel then return end
if msg and msg ~= "" then
if msg and msg ~= "" and type(msg) == "string" then
local n = tonumber(msg)
if n then
msg = (n > 3) and "on" or "off" -- same threshold as in homedecor's lights