Fix ChunkPos cast warning
This commit is contained in:
parent
17c77dc57c
commit
017fa39adc
|
@ -63,7 +63,7 @@ namespace Feather
|
||||||
ChunkPos(BlockPos pos) : x(pos.x >> 4), z(pos.z >> 4) {}
|
ChunkPos(BlockPos pos) : x(pos.x >> 4), z(pos.z >> 4) {}
|
||||||
|
|
||||||
// Decode from packed int64
|
// Decode from packed int64
|
||||||
ChunkPos(int64_t packed) : x(packed), z(packed >> 32) {}
|
ChunkPos(int64_t packed) : x((int32_t)packed), z(packed >> 32) {}
|
||||||
|
|
||||||
// Pack into one int64
|
// Pack into one int64
|
||||||
inline int64_t Encode()
|
inline int64_t Encode()
|
||||||
|
|
Loading…
Reference in New Issue