mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 17:45:10 +00:00
Fix placing stairs = crash
This commit is contained in:
parent
cbc122836d
commit
fd32ee0318
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ local function place_stair(itemstack, placer, pointed_thing)
|
||||||
param2 = minetest.dir_to_facedir(vector.subtract(p1, placer_pos))
|
param2 = minetest.dir_to_facedir(vector.subtract(p1, placer_pos))
|
||||||
end
|
end
|
||||||
|
|
||||||
local fpos = get_pos(placer, pointed_thing)
|
local fpos = get_fpos(placer, pointed_thing)
|
||||||
|
|
||||||
if p0.y - 1 == p1.y or (fpos > 0 and fpos < 0.5)
|
if p0.y - 1 == p1.y or (fpos > 0 and fpos < 0.5)
|
||||||
or (fpos < -0.5 and fpos > -0.999999999) then
|
or (fpos < -0.5 and fpos > -0.999999999) then
|
||||||
|
|
Loading…
Reference in a new issue