mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Terrain: Fix coordinate parsing (negative coords)
- Optimize readNextUShortsLittleEndian network reading method - Various coordinate computation issues, negative chunk offsets - Properly parse negative coordinates for block change events - Properly reach ground if less than 1 block over the ground
This commit is contained in:
parent
cb00c28b6e
commit
5d8d42e3d1
4 changed files with 43 additions and 22 deletions
|
|
@ -57,7 +57,7 @@ namespace MinecraftClient.Mapping
|
|||
/// <returns>The block</returns>
|
||||
public Block GetBlock(Location location)
|
||||
{
|
||||
return this[((int)location.X) % Chunk.SizeX, ((int)location.Y) % Chunk.SizeY, ((int)location.Z) % Chunk.SizeZ];
|
||||
return this[location.ChunkBlockX, location.ChunkBlockY, location.ChunkBlockZ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue