fix flat world floor, replace read/writeState
This commit is contained in:
parent
1dea7e9645
commit
47021f9e49
3 changed files with 42 additions and 41 deletions
|
@ -24,6 +24,7 @@ import common.collect.Lists;
|
|||
import common.collect.Maps;
|
||||
import common.collect.Sets;
|
||||
import common.dimension.Dimension;
|
||||
import common.dimension.Dimension.GeneratorType;
|
||||
import common.dimension.Lake;
|
||||
import common.dimension.Liquid;
|
||||
import common.dimension.Ore;
|
||||
|
@ -393,7 +394,7 @@ public final class WorldServer extends AWorldServer {
|
|||
this.caveGen = this.createCaveGenerator();
|
||||
this.bigCaveGen = this.createBigCaveGenerator();
|
||||
this.ravineGen = this.createRavineGenerator();
|
||||
this.base = this.dimension.getFiller().getBlock() != Blocks.air;
|
||||
this.base = this.dimension.getFiller().getBlock() != Blocks.air && this.dimension.getGeneratorType() != GeneratorType.FLAT;
|
||||
this.ceil = this.dimension.hasWorldCeiling();
|
||||
this.mobs = this.dimension.hasMobs();
|
||||
this.snow = this.dimension.hasSnow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue