From 3b7581a03ab21cf4e5e2415a1e4fbe9a7230b2f2 Mon Sep 17 00:00:00 2001 From: alemidev Date: Sun, 12 Dec 2021 02:18:23 +0100 Subject: [PATCH] proper hashing of blockpos --- aiocraft/mc/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiocraft/mc/types.py b/aiocraft/mc/types.py index f6ffe71..f099027 100644 --- a/aiocraft/mc/types.py +++ b/aiocraft/mc/types.py @@ -191,7 +191,7 @@ class PositionType(Type): def write(self, data:tuple, buffer:io.BytesIO, ctx:object=None): packed = ((0x3FFFFFF & data[0]) << 38) \ - | ((0xFFF & data[1]) << 12) \ + | ((0xFFF & data[1]) << 26) \ | (0x3FFFFFF & data[2]) UnsignedLong.write(packed, buffer, ctx=ctx)