Fix lines length related issues in homedecor_common

This commit is contained in:
Louis Royer
2020-08-04 16:12:47 +02:00
parent 7f67f4a035
commit 18744ee66d
4 changed files with 13 additions and 3 deletions

View File

@ -70,7 +70,11 @@ function homedecor.register(name, original_def)
if not fdir or fdir > 3 then return end
if expand.right and expand.forward ~= "air" then
local right_pos = { x=pos.x+homedecor.fdir_to_right[fdir+1][1], y=pos.y, z=pos.z+homedecor.fdir_to_right[fdir+1][2] }
local right_pos = {
x = pos.x + homedecor.fdir_to_right[fdir+1][1],
y = pos.y,
z = pos.z + homedecor.fdir_to_right[fdir+1][2]
}
local node = minetest.get_node(right_pos).name
if node == expand.right or node == placeholder_node then
minetest.remove_node(right_pos)