Fix ex for fluid height

This commit is contained in:
Daniel Mills 2020-10-22 19:23:05 -04:00
parent 56203c3ee2
commit 06ffe5cd06
2 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>bytecode.ninja</groupId> <groupId>bytecode.ninja</groupId>
<artifactId>Iris</artifactId> <artifactId>Iris</artifactId>
<version>1.0.23</version> <version>1.0.24</version>
<name>Iris</name> <name>Iris</name>
<properties> <properties>
<skip.copy>false</skip.copy> <skip.copy>false</skip.copy>

View File

@ -722,6 +722,11 @@ public abstract class TopographicTerrainProvider extends ParallelTerrainProvider
public int getFluidHeight() public int getFluidHeight()
{ {
if(getDimension() == null)
{
return 63;
}
return getDimension().getFluidHeight(); return getDimension().getFluidHeight();
} }