diff --git a/init.lua b/init.lua index 927fea2..20b8cff 100644 --- a/init.lua +++ b/init.lua @@ -170,6 +170,7 @@ minetest.register_chatcommand('add_mrkr', { description = 'Adds a marker.', func = function(param) local s, e = param:find(' ') + if not s or not e then return end local pos = param:sub(1, s - 1) local name = param:sub(e + 1)