mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
multiwand: fix crash on left clicking background
This commit is contained in:
parent
cf0be6c1fb
commit
0983e09f50
1 changed files with 1 additions and 1 deletions
|
@ -3,11 +3,11 @@ local wea = worldeditadditions
|
|||
local Vector3 = wea.Vector3
|
||||
|
||||
local function push_pos(player_name, pos)
|
||||
pos = Vector3.clone(pos)
|
||||
if player_name == nil then return end
|
||||
if pos == nil then
|
||||
worldedit.player_notify(player_name, "[multi wand] Error: Too far away (try raising your maxdist with //farwand maxdist <number>)")
|
||||
else
|
||||
pos = Vector3.clone(pos)
|
||||
wea_c.pos.push(player_name, pos)
|
||||
worldedit.player_notify(player_name, "[multi wand] Added "..pos..". "..wea_c.pos.count(player_name).." points now registered.")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue