Skip to content

Commit

Permalink
Fixed #6893. Boot plugins automatically if config render type is set …
Browse files Browse the repository at this point in the history
…to Phaser.HEADLESS
  • Loading branch information
zekeatchan committed Jan 9, 2025
1 parent bfa12ec commit 8736f0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/PluginManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var GameObjectFactory = require('../gameobjects/GameObjectFactory');
var GetFastValue = require('../utils/object/GetFastValue');
var PluginCache = require('./PluginCache');
var Remove = require('../utils/array/Remove');
var CONST = require('../const');

/**
* @classdesc
Expand Down Expand Up @@ -113,7 +114,7 @@ var PluginManager = new Class({
*/
this._pendingScene = [];

if (game.isBooted)
if (game.isBooted || game.config.renderType === CONST.HEADLESS)
{
this.boot();
}
Expand Down

0 comments on commit 8736f0e

Please sign in to comment.