1
0
mirror of https://github.com/teoxoy/factorio-blueprint-editor.git synced 2025-01-18 02:58:31 +02:00
This commit is contained in:
Teoxoy 2018-07-04 19:48:35 +02:00
parent 7f52e17e8b
commit 80feefe6f1

View File

@ -338,11 +338,11 @@ export class Blueprint {
return { return {
x: [...this.rawEntities.keys()].reduce( x: [...this.rawEntities.keys()].reduce(
(best: number, ent: any) => xcomp(best, this.entity(ent)[f]().x), (best: number, ent: any) => xcomp(best, this.entity(ent)[f]().x),
this.entity(1)[f]().x this.rawEntities.first().entity()[f]().x
), ),
y: [...this.rawEntities.keys()].reduce( y: [...this.rawEntities.keys()].reduce(
(best: number, ent: any) => ycomp(best, this.entity(ent)[f]().y), (best: number, ent: any) => ycomp(best, this.entity(ent)[f]().y),
this.entity(1)[f]().y this.rawEntities.first().entity()[f]().y
) )
} }
} }