mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
update to use player_vector
This commit is contained in:
parent
0ecd6233ad
commit
ebae1cd844
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ worldedit.register_command("srel", {
|
|||
if not _ then return false, vec end
|
||||
|
||||
if not worldedit.pos1[name] then
|
||||
local pos = vector.add(minetest.get_player_by_name(name):get_pos(), vector.new(0.5,-0.5,0.5))
|
||||
local pos = vector.add(wea.player_vector(name), vector.new(0.5,-0.5,0.5))
|
||||
wea.vector.floor(pos)
|
||||
worldedit.pos1[name] = pos
|
||||
worldedit.mark_pos1(name)
|
||||
|
|
Loading…
Reference in a new issue