mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
far wand: notify player when setting pos1 and pos2
This commit is contained in:
parent
20a026724f
commit
ce999dd537
2 changed files with 3 additions and 0 deletions
|
@ -4,3 +4,4 @@ It's about time I started a changelog! This will serve from now on as the master
|
|||
|
||||
## v1.8 (unreleased)
|
||||
- Update `//multi` to display human readable times (e.g. `2.11mins` instead of `126600ms`)
|
||||
- Far wand: Notify player when setting pos1 and pos2
|
||||
|
|
|
@ -3,6 +3,7 @@ local function set_pos1(name, pos)
|
|||
-- print("[set_pos1]", name, "("..pos.x..", "..pos.y..", "..pos.z..")")
|
||||
worldedit.pos1[name] = pos
|
||||
worldedit.mark_pos1(name)
|
||||
worldedit.player_notify(name, "pos1 set to "..worldeditadditions.vector.tostring(pos))
|
||||
else
|
||||
-- print("[set_pos1]", name, "nil")
|
||||
end
|
||||
|
@ -12,6 +13,7 @@ local function set_pos2(name, pos)
|
|||
-- print("[set_pos2]", name, "("..pos.x..", "..pos.y..", "..pos.z..")")
|
||||
worldedit.pos2[name] = pos
|
||||
worldedit.mark_pos2(name)
|
||||
worldedit.player_notify(name, "pos2 set to "..worldeditadditions.vector.tostring(pos))
|
||||
else
|
||||
-- print("[set_pos2]", name, "nil")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue