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:
parent
007aeaafd2
commit
688664e928
@ -63,7 +63,7 @@ export class ItemEjectorComponent extends Component {
|
|||||||
direction: slot.direction,
|
direction: slot.direction,
|
||||||
item: null,
|
item: null,
|
||||||
progress: 0,
|
progress: 0,
|
||||||
buffered: slot.buffered,
|
buffered: !!slot.buffered,
|
||||||
nextItem: null,
|
nextItem: null,
|
||||||
cachedDestSlot: null,
|
cachedDestSlot: null,
|
||||||
cachedTargetEntity: null,
|
cachedTargetEntity: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user