mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-28 16:27:29 +01:00
update to use player_vector
This commit is contained in:
parent
0ecd6233ad
commit
ebae1cd844
@ -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 New Issue
Block a user