mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
simplify ChunkRegionMixin height accessors
This commit is contained in:
+2
-2
@@ -109,7 +109,7 @@ public abstract class ChunkRegionMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int terraWorld$getMaxHeight() {
|
public int terraWorld$getMaxHeight() {
|
||||||
return (((ChunkRegion) (Object) this).getBottomY()) + ((ChunkRegion) (Object) this).getHeight();
|
return world.getTopY();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Intrinsic(displace = true)
|
@Intrinsic(displace = true)
|
||||||
@@ -123,7 +123,7 @@ public abstract class ChunkRegionMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int terraWorld$getMinHeight() {
|
public int terraWorld$getMinHeight() {
|
||||||
return ((ChunkRegion) (Object) this).getBottomY();
|
return world.getBottomY();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChunkGenerator terraWorld$getGenerator() {
|
public ChunkGenerator terraWorld$getGenerator() {
|
||||||
|
|||||||
Reference in New Issue
Block a user