From 33c297586c3b0220196126069f47ec33dce5a397 Mon Sep 17 00:00:00 2001 From: Josh Zacharias Date: Thu, 11 Sep 2014 17:07:08 -0700 Subject: [PATCH] Fix multiplayer not activating modules correctly from the gestalt integration. --- .../engine/modes/loadProcesses/JoinServer.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/engine/src/main/java/org/terasology/engine/modes/loadProcesses/JoinServer.java b/engine/src/main/java/org/terasology/engine/modes/loadProcesses/JoinServer.java index 45e2bbf6d3e..8c2e6faf66d 100644 --- a/engine/src/main/java/org/terasology/engine/modes/loadProcesses/JoinServer.java +++ b/engine/src/main/java/org/terasology/engine/modes/loadProcesses/JoinServer.java @@ -17,23 +17,22 @@ package org.terasology.engine.modes.loadProcesses; import com.google.common.collect.Maps; - import com.google.common.collect.Sets; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.terasology.engine.module.ModuleManager; -import org.terasology.module.Module; -import org.terasology.naming.NameVersion; -import org.terasology.registry.CoreRegistry; import org.terasology.engine.GameEngine; import org.terasology.engine.bootstrap.ApplyModulesUtil; import org.terasology.engine.modes.LoadProcess; import org.terasology.engine.modes.StateMainMenu; +import org.terasology.engine.module.ModuleManager; import org.terasology.game.Game; import org.terasology.game.GameManifest; +import org.terasology.module.Module; +import org.terasology.naming.NameVersion; import org.terasology.network.JoinStatus; import org.terasology.network.NetworkSystem; import org.terasology.network.ServerInfoMessage; +import org.terasology.registry.CoreRegistry; import org.terasology.world.internal.WorldInfo; import java.util.Map; @@ -92,12 +91,12 @@ public boolean step() { CoreRegistry.get(GameEngine.class).changeState(mainMenu); return false; } else { - logger.debug("Activating module: {}:{}", moduleInfo.getName(), moduleInfo.getVersion()); gameManifest.addModule(module.getId(), module.getVersion()); moduleSet.add(module); } } + moduleManager.loadEnvironment(moduleSet, true); CoreRegistry.get(Game.class).load(gameManifest); ApplyModulesUtil.applyModules();