Fixed missing ancestor call in World Providers & generators constructors

This commit is contained in:
Unknown 2018-07-18 12:27:35 +02:00 committed by unknown
parent f20d2c20ac
commit b69d3ed1c6
6 changed files with 14 additions and 0 deletions

View file

@ -23,6 +23,10 @@ public abstract class AbstractWorldProvider extends WorldProvider {
protected CelestialObject celestialObjectDimension = null;
protected boolean isRemote;
AbstractWorldProvider() {
super();
}
protected void updateCelestialObject() throws RuntimeException {
if (getDimension() == 0) {
throw new RuntimeException("Critical error: you can't use a WorldProvider before settings its dimension id!");

View file

@ -18,6 +18,8 @@ import javax.annotation.Nonnull;
public class HyperSpaceWorldProvider extends AbstractWorldProvider {
public HyperSpaceWorldProvider() {
super();
biomeProvider = new BiomeProviderSingle(WarpDrive.biomeSpace);
nether = true;
}

View file

@ -18,6 +18,8 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public class SpaceWorldProvider extends AbstractWorldProvider {
public SpaceWorldProvider() {
super();
biomeProvider = new BiomeProviderSingle(WarpDrive.biomeSpace);
nether = false;
}

View file

@ -24,6 +24,8 @@ public class WorldGenSmallShip extends WorldGenerator {
private final boolean isCreative;
public WorldGenSmallShip(final boolean isCorrupted, final boolean isCreative) {
super();
this.isCorrupted = isCorrupted;
this.isCreative = isCreative;
}

View file

@ -12,6 +12,8 @@ public class WorldGenStation extends WorldGenerator {
private final boolean corrupted;
public WorldGenStation(final boolean corrupted) {
super();
this.corrupted = corrupted;
}

View file

@ -33,6 +33,8 @@ public class WorldGenStructure {
private final Filler fillerPropulsion;
public WorldGenStructure(final boolean corrupted, final Random rand) {
super();
this.corrupted = corrupted;
this.rand = rand;