prevent crash if receiving a null message string or channel

This commit is contained in:
Vanessa Dannenberg 2019-07-16 06:45:04 -04:00
parent 1d59c2258d
commit 80352d69e1
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ local digiline_on_punch
if minetest.get_modpath("digilines") then
local on_digiline_receive_string = function(pos, node, channel, msg)
if not msg or not channel then return end
local meta = minetest.get_meta(pos)
local setchan = meta:get_string("channel")
if setchan ~= channel then return end