simplify ChunkRegionMixin height accessors

This commit is contained in:
dfsek
2022-06-16 02:01:24 -07:00
parent 099d5f60c8
commit e13f8163a2

View File

@@ -109,7 +109,7 @@ public abstract class ChunkRegionMixin {
}
public int terraWorld$getMaxHeight() {
return (((ChunkRegion) (Object) this).getBottomY()) + ((ChunkRegion) (Object) this).getHeight();
return world.getTopY();
}
@Intrinsic(displace = true)
@@ -123,7 +123,7 @@ public abstract class ChunkRegionMixin {
}
public int terraWorld$getMinHeight() {
return ((ChunkRegion) (Object) this).getBottomY();
return world.getBottomY();
}
public ChunkGenerator terraWorld$getGenerator() {