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:
parent
b0fc52a55f
commit
6cfdca3e10
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user