Make .mrkrthere error message more consistent
This commit is contained in:
parent
5d576cdbb1
commit
bbdf0452c7
4
init.lua
4
init.lua
|
@ -178,7 +178,7 @@ minetest.register_chatcommand('add_mrkr', {
|
||||||
pos = minetest.localplayer:get_pos()
|
pos = minetest.localplayer:get_pos()
|
||||||
elseif pos == 'there' then
|
elseif pos == 'there' then
|
||||||
if not advmarkers.last_coords then
|
if not advmarkers.last_coords then
|
||||||
return false, 'No-one has used .coords yet!'
|
return false, 'No-one has used ".coords" and you have not died!'
|
||||||
end
|
end
|
||||||
pos = advmarkers.last_coords
|
pos = advmarkers.last_coords
|
||||||
else
|
else
|
||||||
|
@ -300,7 +300,7 @@ minetest.register_chatcommand('mrkrthere', {
|
||||||
description = 'Adds a (temporary) marker at the last ".coords" position.',
|
description = 'Adds a (temporary) marker at the last ".coords" position.',
|
||||||
func = function(param)
|
func = function(param)
|
||||||
if not advmarkers.last_coords then
|
if not advmarkers.last_coords then
|
||||||
return false, 'No-one has used ".coords" yet!'
|
return false, 'No-one has used ".coords" and you have not died!'
|
||||||
elseif not advmarkers.set_hud_pos(advmarkers.last_coords) then
|
elseif not advmarkers.set_hud_pos(advmarkers.last_coords) then
|
||||||
return false, 'Error setting the marker!'
|
return false, 'Error setting the marker!'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue