update to 1.17.1 and minor fixes
This commit is contained in:
1 parent
99a97df753
commit
c04e831e19
5 files changed
+9
-5
No files matched your search
@@ -461,6 +461,7 @@ KNOWN_MINECRAFT_VERSION_RECORDS = [
|
|||||||
Version('20w46a', PRE | 6, True),
|
Version('20w46a', PRE | 6, True),
|
||||||
Version('20w48a', PRE | 7, True),
|
Version('20w48a', PRE | 7, True),
|
||||||
Version('1.17', 755, True),
|
Version('1.17', 755, True),
|
||||||
|
Version('1.17.1', 756, True),
|
||||||
]
|
]
|
||||||
|
|
||||||
# An OrderedDict mapping the id string of each known Minecraft version to its
|
# An OrderedDict mapping the id string of each known Minecraft version to its
|
||||||
|
|||||||
@@ -374,7 +374,6 @@ class EntityLookPacket(Packet):
|
|||||||
{'on_ground': Boolean}
|
{'on_ground': Boolean}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class ResourcePackSendPacket(Packet):
|
class ResourcePackSendPacket(Packet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id(context):
|
def get_id(context):
|
||||||
@@ -384,5 +383,7 @@ class ResourcePackSendPacket(Packet):
|
|||||||
packet_name = "resource pack send"
|
packet_name = "resource pack send"
|
||||||
definition = [
|
definition = [
|
||||||
{"url": String},
|
{"url": String},
|
||||||
{"hash": String}
|
{"hash": String},
|
||||||
|
{"forced": Boolean},
|
||||||
|
{"forced_message": String}
|
||||||
]
|
]
|
||||||
@@ -101,7 +101,10 @@ class MapPacket(Packet):
|
|||||||
icon = MapPacket.MapIcon(type, direction, (x, z), display_name)
|
icon = MapPacket.MapIcon(type, direction, (x, z), display_name)
|
||||||
self.icons.append(icon)
|
self.icons.append(icon)
|
||||||
|
|
||||||
self.width = UnsignedByte.read(file_object)
|
try:
|
||||||
|
self.width = UnsignedByte.read(file_object)
|
||||||
|
except:
|
||||||
|
self.width = None
|
||||||
if self.width:
|
if self.width:
|
||||||
self.height = UnsignedByte.read(file_object)
|
self.height = UnsignedByte.read(file_object)
|
||||||
x = Byte.read(file_object)
|
x = Byte.read(file_object)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class PlayerPositionAndLookPacket(Packet, BitFieldEnum):
|
|||||||
{'pitch': Float},
|
{'pitch': Float},
|
||||||
{'flags': Byte},
|
{'flags': Byte},
|
||||||
{'teleport_id': VarInt} if context.protocol_later_eq(107) else {},
|
{'teleport_id': VarInt} if context.protocol_later_eq(107) else {},
|
||||||
{'dismount_vehicle': Boolean} if context.protocol_later_eq(755) else {},
|
{'dismount_vehicle':Boolean} if context.protocol_later_eq(755) else {},
|
||||||
])
|
])
|
||||||
|
|
||||||
# Access the 'x', 'y', 'z' fields as a Vector tuple.
|
# Access the 'x', 'y', 'z' fields as a Vector tuple.
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ class UseItemPacket(Packet):
|
|||||||
|
|
||||||
Hand = RelativeHand
|
Hand = RelativeHand
|
||||||
|
|
||||||
|
|
||||||
class ResourcePackStatusPacket(Packet):
|
class ResourcePackStatusPacket(Packet):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id(context):
|
def get_id(context):
|
||||||
|
|||||||
Reference in new issue
Block a user