Fix crash
This commit is contained in:
parent
bbdf0452c7
commit
d486536a23
1
init.lua
1
init.lua
@ -170,6 +170,7 @@ minetest.register_chatcommand('add_mrkr', {
|
|||||||
description = 'Adds a marker.',
|
description = 'Adds a marker.',
|
||||||
func = function(param)
|
func = function(param)
|
||||||
local s, e = param:find(' ')
|
local s, e = param:find(' ')
|
||||||
|
if not s or not e then return end
|
||||||
local pos = param:sub(1, s - 1)
|
local pos = param:sub(1, s - 1)
|
||||||
local name = param:sub(e + 1)
|
local name = param:sub(e + 1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user