Skip to content

Commit

Permalink
Implement getMaxY for ForgeWorld.
Browse files Browse the repository at this point in the history
Should play nicer with things like CubicChunks. Note that there is no
way to get the min point in Minecraft itself, so this only supports
going up, not down.
  • Loading branch information
wizjany committed Apr 14, 2019
1 parent b5e1f3d commit 2a1fdf4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ public void setWeather(WeatherType weatherType, long duration) {
}
}

@Override
public int getMaxY() {
return getWorld().getHeight();
}

@Override
public BlockVector3 getSpawnPosition() {
return ForgeAdapter.adapt(getWorld().getSpawnPoint());
Expand Down

0 comments on commit 2a1fdf4

Please sign in to comment.