mirror of
https://github.com/mt-mods/nixie_tubes.git
synced 2024-12-04 13:13:45 +01:00
don't crash on empty string
This commit is contained in:
parent
cbcc268c72
commit
809b4f4ed1
2
init.lua
2
init.lua
@ -228,7 +228,7 @@ local on_digiline_receive_alnum = function(pos, node, channel, msg)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local setchan = meta:get_string("channel")
|
||||
if setchan ~= channel then return end
|
||||
if msg then
|
||||
if msg and msg ~= "" then
|
||||
local asc = string.byte(msg)
|
||||
if msg == "off" then
|
||||
minetest.swap_node(pos, { name = "nixie_tubes:alnum_32", param2 = node.param2})
|
||||
|
Loading…
Reference in New Issue
Block a user