BREAKING CHANGE: Renamed Environment.SKYLANDS to THE_END
This commit is contained in:
parent
a3854a4646
commit
7c6e0e8bb1
@ -752,9 +752,9 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
NETHER(-1),
|
NETHER(-1),
|
||||||
/**
|
/**
|
||||||
* Represents a sky-lands based map ("heaven")
|
* Represents the "end" map
|
||||||
*/
|
*/
|
||||||
SKYLANDS(1);
|
THE_END(1);
|
||||||
|
|
||||||
private final int id;
|
private final int id;
|
||||||
private static final Map<Integer, Environment> lookup = new HashMap<Integer, Environment>();
|
private static final Map<Integer, Environment> lookup = new HashMap<Integer, Environment>();
|
||||||
|
@ -52,7 +52,7 @@ public abstract class ChunkGenerator {
|
|||||||
switch (world.getEnvironment()) {
|
switch (world.getEnvironment()) {
|
||||||
case NETHER:
|
case NETHER:
|
||||||
return true;
|
return true;
|
||||||
case SKYLANDS:
|
case THE_END:
|
||||||
return highest.getType() != Material.AIR
|
return highest.getType() != Material.AIR
|
||||||
&& highest.getType() != Material.WATER
|
&& highest.getType() != Material.WATER
|
||||||
&& highest.getType() != Material.LAVA;
|
&& highest.getType() != Material.LAVA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user