1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

last minute fix

This commit is contained in:
dgs4349 2020-09-27 10:29:31 -04:00
parent 7bbc72cc7f
commit 54e4f45bcd

View File

@ -20,8 +20,11 @@ export class FilterSystem extends GameSystemWithFilter {
const requiredProgress = 1 - progress;
for (let i = 0; i < this.allEntities.length; ++i) {
const entity = this.allEntities[i];
for (
let arr = this.getUpdateEntitiesArray(), i = arr.length - 1, entity;
(entity = arr[i]) && i >= 0;
--i
) {
const filterComp = entity.components.Filter;
const ejectorComp = entity.components.ItemEjector;