Fix crash

master
luk3yx 2018-12-30 17:52:30 +13:00
parent bbdf0452c7
commit d486536a23
1 changed files with 1 additions and 0 deletions

View File

@ -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)