Fix Sponge generation casting

This commit is contained in:
MattBDev 2016-07-25 18:42:31 -04:00
parent 5d92701100
commit 290e5c68dc

View File

@ -140,16 +140,16 @@ public class SpongeSetupUtils extends SetupUtils {
if (object.setupGenerator != null) { if (object.setupGenerator != null) {
// create world with generator // create world with generator
GeneratorWrapper<?> gw = SetupUtils.generators.get(object.setupGenerator); GeneratorWrapper<?> gw = SetupUtils.generators.get(object.setupGenerator);
WorldArchetype wgm = (WorldArchetype) gw.getPlatformGenerator(); WorldGeneratorModifier wgm = (WorldGeneratorModifier) gw.getPlatformGenerator();
WorldArchetype settings = WorldArchetype.builder() WorldArchetype settings = WorldArchetype.builder()
.loadsOnStartup(true) .loadsOnStartup(true)
.keepsSpawnLoaded(true) .keepsSpawnLoaded(true)
.dimension(DimensionTypes.OVERWORLD) .dimension(DimensionTypes.OVERWORLD)
.generator(GeneratorTypes.OVERWORLD) .generator(GeneratorTypes.FLAT)
.usesMapFeatures(false) .usesMapFeatures(false)
.enabled(true) .enabled(true)
//.generatorModifiers(wgm) .generatorModifiers(wgm)
.build("PS",object.world); .build("PS",object.world);
WorldProperties properties = null; WorldProperties properties = null;
try { try {