Assembly machines can only be rotated once the fluid connection is present. My mod uses heat pipe connections (picture attached), that were rotateable in 0.16. Now in 0.17 it rotates fine while on the cursor, but cannot be changed anymore once placed.
Is this intended or is there a way to rotate an assembler without a fluid pipe?
Regards
Faceless
Code: Select all
Test script:
function on_player_rotated_entity(event)
local entity = event.entity
if not entity.valid then return end
if entity.name == "assembling-machine-1" then
--game.print(entity.direction)
local direction = entity.direction + 2
if direction > 6 then
direction = 0
end
entity.direction = direction
--game.print(direction)
end
end
script.on_event(defines.events.on_player_rotated_entity, on_player_rotated_entity)