1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 11:41:50 +00:00

Actually fix filter and tunnel

This commit is contained in:
Sense101 2022-01-25 20:20:00 +00:00
parent cb4ccdbb79
commit 212c880e75
2 changed files with 2 additions and 3 deletions

View File

@ -19,8 +19,7 @@ export class FilterSystem extends GameSystemWithFilter {
// Take items from acceptor // Take items from acceptor
const input = acceptorComp.completedInputs[0]; const input = acceptorComp.completedInputs[0];
if (input && this.tryAcceptItem(entity, input.item, input.extraProgress)) { if (input && this.tryAcceptItem(entity, input.item, input.extraProgress)) {
// only remove one acceptorComp.completedInputs.shift();
acceptorComp.completedInputs.splice(0);
} }
// Output to ejector // Output to ejector

View File

@ -323,7 +323,7 @@ export class UndergroundBeltSystem extends GameSystemWithFilter {
input.extraProgress input.extraProgress
) )
) { ) {
acceptorComp.completedInputs.splice(0); acceptorComp.completedInputs.shift();
} }
} }
} }