Skip to content

Commit

Permalink
Further conflict resolution: work out clashing logical changes for so…
Browse files Browse the repository at this point in the history
…me UI workflow plus a block family fix
  • Loading branch information
Cervator committed Jun 18, 2018
1 parent 94a3dc1 commit 1bbc740
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@ public class CreateGameScreen extends CoreScreenLayer {
@In
private Config config;

private boolean loadingAsServer;

/**
* A UniverseWrapper object used here to determine if the game is single-player or multi-player.
*/
/** A UniverseWrapper object used here to determine if the game is single-player or multi-player.*/
private UniverseWrapper universeWrapper;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ public void onOpened() {
super.onOpened();

if (GameProvider.getSavedGames().isEmpty()) {
CreateGameScreen screen = getManager().createScreen(CreateGameScreen.ASSET_URI, CreateGameScreen.class);
screen.setLoadingAsServer(isLoadingAsServer());
NewGameScreen screen = getManager().createScreen(NewGameScreen.ASSET_URI, NewGameScreen.class);
screen.setUniverseWrapper(universeWrapper);
getManager().pushScreen(screen);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
import org.terasology.rendering.nui.skin.UISkinData;
import org.terasology.rendering.nui.widgets.UIDropdownScrollable;
import org.terasology.rendering.world.WorldSetupWrapper;
import org.terasology.world.block.family.BlockFamilyFactoryRegistry;
import org.terasology.world.block.family.DefaultBlockFamilyFactoryRegistry;
import org.terasology.world.block.family.BlockFamilyRegistry;
import org.terasology.world.block.loader.BlockFamilyDefinition;
import org.terasology.world.block.loader.BlockFamilyDefinitionData;
import org.terasology.world.block.loader.BlockFamilyDefinitionFormat;
Expand Down Expand Up @@ -299,8 +298,8 @@ public void setEnvironment(UniverseWrapper wrapper) {
}

private void initAssets() {
DefaultBlockFamilyFactoryRegistry familyFactoryRegistry = new DefaultBlockFamilyFactoryRegistry();
context.put(BlockFamilyFactoryRegistry.class, familyFactoryRegistry);
BlockFamilyRegistry familyFactoryRegistry = new BlockFamilyRegistry();
context.put(BlockFamilyRegistry.class, familyFactoryRegistry);

// cast lambdas explicitly to avoid inconsistent compiler behavior wrt. type inference
assetTypeManager.registerCoreAssetType(Prefab.class,
Expand Down

0 comments on commit 1bbc740

Please sign in to comment.