Use nullish assignment for plugins
This commit is contained in:
@@ -156,12 +156,12 @@
|
||||
{ prevRadius, timeScaleOverride, resetPlugins = true } = {},
|
||||
) => {
|
||||
if (resetPlugins) {
|
||||
world.plugin = world.plugin || {};
|
||||
world.plugin ??= {};
|
||||
world.plugin.stormSteps = Array.isArray(sceneConfig?.spawnIntervals)
|
||||
? sceneConfig.spawnIntervals
|
||||
: null;
|
||||
world.plugin.squareOffset = 0;
|
||||
engine.plugin = engine.plugin || {};
|
||||
engine.plugin ??= {};
|
||||
engine.plugin.stormState = null;
|
||||
}
|
||||
spawnSystem.updateBallRadius(prevRadius);
|
||||
|
||||
Reference in New Issue
Block a user