9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-28 03:19:15 +00:00
This commit is contained in:
XiaoMoMi
2024-04-15 13:52:19 +08:00
parent 769e1141b2
commit 02414a290c
3 changed files with 5 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ public class BlockPos {
}
public int getSectionID() {
return getY() / 16;
return (int) Math.floor((double) getY() / 16);
}
public int getY() {
@@ -78,7 +78,7 @@ public class BlockPos {
@Override
public String toString() {
return "ChunkPos{" +
return "BlockPos{" +
"x=" + getX() +
"y=" + getY() +
"z=" + getZ() +