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