From bce868a52202ed91a920d187e55bffa78e3ae907 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 6 Dec 2020 23:53:04 +0000 Subject: [PATCH] Remove serverbound packets from monkey patch --- monkey_patch.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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)