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:
Starbeamrainbowlabs 2021-02-23 23:10:45 +00:00
parent 478d1269a1
commit a0c20a1503
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -5,6 +5,7 @@ local function set_pos1(name, pos)
worldedit.mark_pos1(name) worldedit.mark_pos1(name)
worldedit.player_notify(name, "pos1 set to "..worldeditadditions.vector.tostring(pos)) worldedit.player_notify(name, "pos1 set to "..worldeditadditions.vector.tostring(pos))
else else
worldedit.player_notify(name, "Error: Too far away (try raising your maxdist with //farwand maxdist <number>)")
-- print("[set_pos1]", name, "nil") -- print("[set_pos1]", name, "nil")
end end
end end
@ -15,6 +16,7 @@ local function set_pos2(name, pos)
worldedit.mark_pos2(name) worldedit.mark_pos2(name)
worldedit.player_notify(name, "pos2 set to "..worldeditadditions.vector.tostring(pos)) worldedit.player_notify(name, "pos2 set to "..worldeditadditions.vector.tostring(pos))
else else
worldedit.player_notify(name, "Error: Too far away (try raising your maxdist with //farwand maxdist <number>)")
-- print("[set_pos2]", name, "nil") -- print("[set_pos2]", name, "nil")
end end
end end