Skip to content

Commit

Permalink
Fix multiplayer not activating modules correctly from the gestalt int…
Browse files Browse the repository at this point in the history
…egration.
  • Loading branch information
Josharias committed Sep 12, 2014
1 parent 828b99f commit 33c2975
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 33c2975

Please sign in to comment.