mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
farwand: add too far away message
It works fabulously for the cloud wand, so let's add it to the far wand too
This commit is contained in:
parent
478d1269a1
commit
a0c20a1503
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ local function set_pos1(name, pos)
|
|||
worldedit.mark_pos1(name)
|
||||
worldedit.player_notify(name, "pos1 set to "..worldeditadditions.vector.tostring(pos))
|
||||
else
|
||||
worldedit.player_notify(name, "Error: Too far away (try raising your maxdist with //farwand maxdist <number>)")
|
||||
-- print("[set_pos1]", name, "nil")
|
||||
end
|
||||
end
|
||||
|
@ -15,6 +16,7 @@ local function set_pos2(name, pos)
|
|||
worldedit.mark_pos2(name)
|
||||
worldedit.player_notify(name, "pos2 set to "..worldeditadditions.vector.tostring(pos))
|
||||
else
|
||||
worldedit.player_notify(name, "Error: Too far away (try raising your maxdist with //farwand maxdist <number>)")
|
||||
-- print("[set_pos2]", name, "nil")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue