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

Fix buffered field to always be a boolean

If the slot definition doesn't set it (which is usually the case), the
field would end up being undefined instead of false.
This commit is contained in:
Frode Austvik 2020-12-08 03:23:29 +01:00
parent 007aeaafd2
commit 688664e928

View File

@ -63,7 +63,7 @@ export class ItemEjectorComponent extends Component {
direction: slot.direction,
item: null,
progress: 0,
buffered: slot.buffered,
buffered: !!slot.buffered,
nextItem: null,
cachedDestSlot: null,
cachedTargetEntity: null,