Monkey-patch in custom packets

This commit is contained in:
2020-09-05 22:19:48 -06:00
parent 71918953c2
commit 303612fcf1
2 changed files with 24 additions and 8 deletions

View File

@@ -9,10 +9,7 @@ from minecraft.networking.types import (
from ....types import nbt
class ChunkDataPacket(Packet):
@staticmethod
def get_id(context):
return 0x20 # FIXME
id = 0x20
packet_name = 'chunk data'
fields = 'x', 'bit_mask_y', 'z', 'full_chunk'