mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-02 08:50:17 +01:00
Fix Sponge generation casting
This commit is contained in:
parent
5d92701100
commit
290e5c68dc
@ -140,16 +140,16 @@ public class SpongeSetupUtils extends SetupUtils {
|
||||
if (object.setupGenerator != null) {
|
||||
// create world with generator
|
||||
GeneratorWrapper<?> gw = SetupUtils.generators.get(object.setupGenerator);
|
||||
WorldArchetype wgm = (WorldArchetype) gw.getPlatformGenerator();
|
||||
WorldGeneratorModifier wgm = (WorldGeneratorModifier) gw.getPlatformGenerator();
|
||||
|
||||
WorldArchetype settings = WorldArchetype.builder()
|
||||
.loadsOnStartup(true)
|
||||
.keepsSpawnLoaded(true)
|
||||
.dimension(DimensionTypes.OVERWORLD)
|
||||
.generator(GeneratorTypes.OVERWORLD)
|
||||
.generator(GeneratorTypes.FLAT)
|
||||
.usesMapFeatures(false)
|
||||
.enabled(true)
|
||||
//.generatorModifiers(wgm)
|
||||
.generatorModifiers(wgm)
|
||||
.build("PS",object.world);
|
||||
WorldProperties properties = null;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user