proper hashing of blockpos
This commit is contained in:
parent
9a19b417bf
commit
3b7581a03a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue