mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2025-01-18 02:58:31 +02:00
Fixes #3
This commit is contained in:
parent
7f52e17e8b
commit
80feefe6f1
@ -338,11 +338,11 @@ export class Blueprint {
|
||||
return {
|
||||
x: [...this.rawEntities.keys()].reduce(
|
||||
(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(
|
||||
(best: number, ent: any) => ycomp(best, this.entity(ent)[f]().y),
|
||||
this.entity(1)[f]().y
|
||||
this.rawEntities.first().entity()[f]().y
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user