change .NET version to 4.0

This commit is contained in:
BruceChen 2022-07-24 22:03:02 +08:00
parent 735d182468
commit 3429989527
5 changed files with 9 additions and 17 deletions

View file

@ -85,7 +85,7 @@ namespace MinecraftClient.Mapping
get
{
if (world.GetDimension() == null)
return (int)Math.Floor(Y / Chunk.SizeY); // old version, always start at zero
return (int)Math.Floor(Y / Chunk.SizeY); // below 1.16.2, Y coordinate always start from zero
else
return (int)Math.Floor((Y - world.GetDimension().minY) / Chunk.SizeY);
}