Page 1 of 1

[0.17.11] Entity.clone() doesn't preserve direction for barrel recipes

Posted: Wed Mar 13, 2019 2:43 am
by mulark
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:

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)
Also happens with map editor clone. Not tested surface.clone_area() but it likely uses editor's cloning.

Re: [0.17.11] Entity.clone() doesn't preserve direction for barrel recipes

Posted: Wed Mar 13, 2019 12:14 pm
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.17.