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.
Dieser Commit ist enthalten in:
wizjany 2019-04-14 11:16:49 -04:00
Ursprung b5e1f3dbc3
Commit 2a1fdf470f

Datei anzeigen

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