mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
BREAKING CHANGE: Renamed Environment.SKYLANDS to THE_END
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
5e8490ab32
commit
b5fed7b863
2 changed files with 3 additions and 3 deletions
|
@ -752,9 +752,9 @@ public interface World {
|
|||
*/
|
||||
NETHER(-1),
|
||||
/**
|
||||
* Represents a sky-lands based map ("heaven")
|
||||
* Represents the "end" map
|
||||
*/
|
||||
SKYLANDS(1);
|
||||
THE_END(1);
|
||||
|
||||
private final int id;
|
||||
private static final Map<Integer, Environment> lookup = new HashMap<Integer, Environment>();
|
||||
|
|
|
@ -52,7 +52,7 @@ public abstract class ChunkGenerator {
|
|||
switch (world.getEnvironment()) {
|
||||
case NETHER:
|
||||
return true;
|
||||
case SKYLANDS:
|
||||
case THE_END:
|
||||
return highest.getType() != Material.AIR
|
||||
&& highest.getType() != Material.WATER
|
||||
&& highest.getType() != Material.LAVA;
|
||||
|
|
Loading…
Add table
Reference in a new issue