Remove serverbound packets from monkey patch

This commit is contained in:
Tanner Collin 2020-12-06 23:53:04 +00:00
parent e0c5c3a6b9
commit bce868a522

View File

@ -6,19 +6,19 @@ def get_packets(old_get_packets):
print('Monkey-patch worked.') print('Monkey-patch worked.')
mc_packets = func(context) mc_packets = func(context)
# add any custom packets here # add any custom CLIENTBOUND packets here
mc_packets.add(packets.ChunkDataPacket) mc_packets.add(packets.ChunkDataPacket)
mc_packets.add(packets.AcknowledgePlayerDiggingPacket) mc_packets.add(packets.AcknowledgePlayerDiggingPacket)
mc_packets.add(packets.BlockBreakAnimationPacket) mc_packets.add(packets.BlockBreakAnimationPacket)
mc_packets.add(packets.SetSlotPacket) mc_packets.add(packets.SetSlotPacket)
mc_packets.add(packets.PlayerDiggingPacket) #mc_packets.add(packets.PlayerDiggingPacket)
mc_packets.add(packets.PickItemPacket) #mc_packets.add(packets.PickItemPacket)
mc_packets.add(packets.HeldItemChangePacket) #mc_packets.add(packets.HeldItemChangePacket)
mc_packets.add(packets.OpenWindowPacket) mc_packets.add(packets.OpenWindowPacket)
mc_packets.add(packets.CloseWindowPacket) #mc_packets.add(packets.CloseWindowPacket)
mc_packets.add(packets.ClickWindowPacket) #mc_packets.add(packets.ClickWindowPacket)
mc_packets.add(packets.ClientWindowConfirmationPacket) mc_packets.add(packets.ClientWindowConfirmationPacket)
mc_packets.add(packets.ServerWindowConfirmationPacket) #mc_packets.add(packets.ServerWindowConfirmationPacket)
mc_packets.add(packets.EntityMetadataPacket) mc_packets.add(packets.EntityMetadataPacket)
mc_packets.add(packets.SpawnLivingEntityPacket) mc_packets.add(packets.SpawnLivingEntityPacket)
mc_packets.add(packets.EntityPositionRotationPacket) mc_packets.add(packets.EntityPositionRotationPacket)
@ -26,6 +26,7 @@ def get_packets(old_get_packets):
#mc_packets.add(packets.EntityActionPacket) #mc_packets.add(packets.EntityActionPacket)
mc_packets.add(packets.SpawnPlayerPacket) mc_packets.add(packets.SpawnPlayerPacket)
return mc_packets return mc_packets
return lambda x: wrapper(old_get_packets, x) return lambda x: wrapper(old_get_packets, x)