Grab fallen saplings, fix bugs
This commit is contained in:
@@ -174,15 +174,6 @@ class SetSlotPacket(Packet):
|
||||
]
|
||||
|
||||
|
||||
class TimeUpdatePacket(Packet):
|
||||
id = 0x4E
|
||||
packet_name = 'time update'
|
||||
definition = [
|
||||
{'world_age': Long},
|
||||
{'time_of_day': Long},
|
||||
]
|
||||
|
||||
|
||||
class PlayerDiggingPacket(Packet):
|
||||
# used when player mines / breaks blocks
|
||||
# https://wiki.vg/Protocol#Player_Digging
|
||||
@@ -339,21 +330,6 @@ class SpawnLivingEntityPacket(Packet):
|
||||
{'velocity_z': Short},
|
||||
]
|
||||
|
||||
class EntityPositionPacket(Packet):
|
||||
# Sent by the server when an entity moves less then 8 blocks
|
||||
# https://wiki.vg/Protocol#Spawn_Entity
|
||||
|
||||
id = 0x27
|
||||
packet_name = 'entity position'
|
||||
|
||||
definition = [
|
||||
{'entity_id': VarInt},
|
||||
{'delta_x': Short},
|
||||
{'delta_y': Short},
|
||||
{'delta_z': Short},
|
||||
{'on_ground': Boolean},
|
||||
]
|
||||
|
||||
class EntityPositionRotationPacket(Packet):
|
||||
# Sent by the server when an entity rotates and moves
|
||||
# https://wiki.vg/Protocol#Entity_Position_and_Rotation
|
||||
@@ -385,17 +361,3 @@ class DestroyEntitiesPacket(Packet):
|
||||
for _ in range(self.count):
|
||||
eid = VarInt.read(file_object)
|
||||
self.entity_ids.append(eid)
|
||||
|
||||
class EntityVelocityPacket(Packet):
|
||||
# Sent to update entity's velocity
|
||||
# https://wiki.vg/Protocol#Entity_Velocity
|
||||
|
||||
id = 0x46
|
||||
packet_name = 'entity velocity'
|
||||
|
||||
definition = [
|
||||
{'entity_id': VarInt},
|
||||
{'velocity_x': Short},
|
||||
{'velocity_y': Short},
|
||||
{'velocity_z': Short},
|
||||
]
|
||||
|
Reference in New Issue
Block a user