[0.17.11] Entity.clone() doesn't preserve direction for barrel recipes
Posted: Wed Mar 13, 2019 2:43 am
Assemblers set to barrel/unbarrel fluids don't preserve their rotation after being cloned.
Make an asm, set the recipe to one of the barrel ones, and then rotate it. Hover over it and run this command:
Also happens with map editor clone. Not tested surface.clone_area() but it likely uses editor's cloning.
Make an asm, set the recipe to one of the barrel ones, and then rotate it. Hover over it and run this command:
Code: Select all
/c local sel= game.player.selected local clone = sel.clone({position = {sel.position.x, sel.position.y + 3}}) game.print(sel.direction) game.print(clone.direction)