mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-11 21:00:20 +01:00
use minetest.rotate_node to place slopes
(6dfacedir prediction)
This commit is contained in:
parent
1f1c889601
commit
cd5e82d84e
|
@ -47,6 +47,7 @@ homedecor.register_outer_corner = function(modname, subname, groups, slope_image
|
||||||
selection_box = ocorner_cbox,
|
selection_box = ocorner_cbox,
|
||||||
collision_box = ocorner_cbox,
|
collision_box = ocorner_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -65,6 +66,7 @@ homedecor.register_inner_corner = function(modname, subname, groups, slope_image
|
||||||
},
|
},
|
||||||
collision_box = icorner_cbox,
|
collision_box = icorner_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -80,6 +82,7 @@ homedecor.register_slope = function(modname, subname, recipeitem, groups, slope_
|
||||||
selection_box = slope_cbox,
|
selection_box = slope_cbox,
|
||||||
collision_box = slope_cbox,
|
collision_box = slope_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
-- convert between flat shingles and slopes
|
-- convert between flat shingles and slopes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user