mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 08:33:00 +00:00
emergency patch for pos1-2 not aligned to node
This commit is contained in:
parent
a6e8753e64
commit
d2fb6db3d0
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ local Vector3 = weac.Vector3
|
|||
|
||||
local function do_set(name, i)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
weac.pos.set(name, i, Vector3.clone(player:get_pos()))
|
||||
local addend = Vector3.new(0,1,0) -- Add one on the y axis
|
||||
weac.pos.set(name, i, Vector3.floor(player:get_pos()) + addend)
|
||||
end
|
||||
|
||||
local function do_set1(name, params_text)
|
||||
|
|
Loading…
Reference in a new issue