add ignore_placed_rotation to building def
Some checks failed
luacheck / build (push) Has been cancelled
test / build (push) Has been cancelled

This commit is contained in:
BuckarooBanzay 2024-11-04 14:47:50 +01:00
parent 20f30bb041
commit 5bde26df20

View File

@ -101,7 +101,10 @@ function building_lib.get_next_buildable_position(player, buildingname)
if placed_building_info then
-- use origin and rotation of existing pointed-at building
pointed_mapblock_pos = placed_building_origin
rotation = placed_building_info.rotation
if not building_def.ignore_placed_rotation then
-- use rotation from already placed building
rotation = placed_building_info.rotation
end
end
if building_def then