forked from MineClone5/MineClone5
Merge pull request '/spawnstruct placed schematics one block lower than player is standing' (#296) from cableguy67-spawnstruct-fix into master
Reviewed-on: MineClone5/MineClone5#296
This commit is contained in:
commit
e4f218fded
|
@ -75,6 +75,7 @@ local function spawnstruct_function(name, param)
|
|||
|
||||
local pos = player:get_pos()
|
||||
if not pos then return end
|
||||
pos.y = math.floor(pos.y) + 1
|
||||
local pr = PseudoRandom(math.floor(pos.x * 333 + pos.y * 19 - pos.z + 4))
|
||||
pos = vector.round(pos)
|
||||
local dir = minetest.yaw_to_dir(player:get_look_horizontal())
|
||||
|
|
Loading…
Reference in New Issue