diff --git a/packages/kernel/CHANGELOG.md b/packages/kernel/CHANGELOG.md index 3f037cd5..316f2156 100644 --- a/packages/kernel/CHANGELOG.md +++ b/packages/kernel/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - m4_getRotation() correctly ignores scale - Only actor mixins trigger a model change - Reparenting bug when child pawns didn't have parents +- Null mixins handled ### Removed - PlayerManager (replaced by UserManager) diff --git a/packages/kernel/src/Mixins.js b/packages/kernel/src/Mixins.js index b8c2af82..df1d3c34 100644 --- a/packages/kernel/src/Mixins.js +++ b/packages/kernel/src/Mixins.js @@ -101,7 +101,7 @@ class MixinFactory { with(...mixins) { if (IsModel(this.superclass))Constants.WC_MIXIN_USAGE.push(mixins); - return mixins.reduce((c, mixin) => mixin(c), this.superclass); + return mixins.reduce((c, mixin) => { if (mixin) return mixin(c); return c }, this.superclass); } }