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

This subforum contains all the issues which we already resolved.
mulark
Long Handed Inserter
Long Handed Inserter
Posts: 54
Joined: Wed Oct 18, 2017 11:32 pm
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14345
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”