1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-15 19:21:49 +00:00

Fix filter

This commit is contained in:
Sense101 2022-01-23 20:23:51 +00:00
parent b0fc52a55f
commit 6cfdca3e10

View File

@ -19,9 +19,9 @@ export class FilterSystem extends GameSystemWithFilter {
const ejectorComp = entity.components.ItemEjector; const ejectorComp = entity.components.ItemEjector;
// Take items from acceptor // Take items from acceptor
const input = acceptorComp.completedInputs.get(0); const input = acceptorComp.completedInputs[0];
if (input && this.tryAcceptItem(entity, input.item, input.extraProgress)) { if (input && this.tryAcceptItem(entity, input.item, input.extraProgress)) {
acceptorComp.completedInputs.delete(0); acceptorComp.completedInputs = [];
} }
// Output to ejector // Output to ejector