mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-13 02:01:51 +00:00
Actually fix filter and tunnel
This commit is contained in:
parent
cb4ccdbb79
commit
212c880e75
@ -19,8 +19,7 @@ export class FilterSystem extends GameSystemWithFilter {
|
||||
// Take items from acceptor
|
||||
const input = acceptorComp.completedInputs[0];
|
||||
if (input && this.tryAcceptItem(entity, input.item, input.extraProgress)) {
|
||||
// only remove one
|
||||
acceptorComp.completedInputs.splice(0);
|
||||
acceptorComp.completedInputs.shift();
|
||||
}
|
||||
|
||||
// Output to ejector
|
||||
|
||||
@ -323,7 +323,7 @@ export class UndergroundBeltSystem extends GameSystemWithFilter {
|
||||
input.extraProgress
|
||||
)
|
||||
) {
|
||||
acceptorComp.completedInputs.splice(0);
|
||||
acceptorComp.completedInputs.shift();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user