Rename variables

This commit is contained in:
BruceChen 2022-07-24 21:48:09 +08:00
parent 516effa81d
commit 735d182468
3 changed files with 27 additions and 27 deletions

View file

@ -87,7 +87,7 @@ namespace MinecraftClient.Mapping
if (world.GetDimension() == null)
return (int)Math.Floor(Y / Chunk.SizeY); // old version, always start at zero
else
return (int)Math.Floor((Y - world.GetDimension().min_y) / Chunk.SizeY);
return (int)Math.Floor((Y - world.GetDimension().minY) / Chunk.SizeY);
}
}