From aad41e5404997b1b319f88d2283219200766be17 Mon Sep 17 00:00:00 2001 From: deathcap Date: Tue, 28 Jan 2014 20:56:40 -0800 Subject: [PATCH] Disable client-only plugin check due to ordering issue Problem: voxel-client only creates the voxel-engine instance when the server connection is established, but voxel-plugins loads all plugins before then. The voxel-engine game instance is not available at this time.. but the current design for plugins is to pass (game,opts) where game=the voxel-engine instance. Needs more work. Ref https://github.com/deathcap/voxpopuli/issues/26 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 06cd4fe..1bfd6c0 100644 --- a/index.js +++ b/index.js @@ -61,7 +61,8 @@ Plugins.prototype.scanAndInstantiate = function(name, opts) { var createPlugin = this.scan(name); if (createPlugin.pluginInfo && createPlugin.pluginInfo.clientOnly) { - if (!this.game.isClient) { + //if (!this.game.isClient) { // TODO + if (false) { console.log("Skipping client-only plugin ("+name+"), in non-client environment"); return false; }