Implement getMaxY for ForgeWorld.

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.
This commit is contained in:
wizjany 2019-04-14 11:16:49 -04:00
parent b5e1f3dbc3
commit 2a1fdf470f

View File

@ -426,6 +426,11 @@ public class ForgeWorld extends AbstractWorld {
} }
} }
@Override
public int getMaxY() {
return getWorld().getHeight();
}
@Override @Override
public BlockVector3 getSpawnPosition() { public BlockVector3 getSpawnPosition() {
return ForgeAdapter.adapt(getWorld().getSpawnPoint()); return ForgeAdapter.adapt(getWorld().getSpawnPoint());