Skip to content

Commit

Permalink
Merge branch 'minetest-mods:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
randomei authored Dec 10, 2024
2 parents 816133e + d547f5f commit 69b504d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesecons_detector/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ local object_detector_digiline = {
effector = {
action = function(pos, _, channel, msg)
local meta = minetest.get_meta(pos)
if channel == meta:get_string("digiline_channel") then
if channel == meta:get_string("digiline_channel") and
(type(msg) == "string" or type(msg) == "number") then
meta:set_string("scanname", msg)
object_detector_make_formspec(pos)
end
Expand Down
1 change: 1 addition & 0 deletions mesecons_luacontroller/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ local function create_environment(pos, mem, event, itbl, send_warning)
print = safe_print,
interrupt = get_interrupt(pos, itbl, send_warning),
digiline_send = get_digiline_send(pos, itbl, send_warning),
sha256sum = minetest.sha256,
string = {
byte = string.byte,
char = string.char,
Expand Down

0 comments on commit 69b504d

Please sign in to comment.