File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets
AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public void onPacketSend(PacketSendEvent event) {
3636
3737 if (mapData .getDecorations () != null ) {
3838 while (mapData .getDecorations ().size () > maxCursors ) {
39+ // Todo: remove cursors on underlying canvas instead of the packet using reflection
3940 mapData .getDecorations ().remove (GenericUtil .RANDOM .nextInt (mapData .getDecorations ().size ()));
4041 event .markForReEncode (true );
4142 }
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public void onPacketSend(PacketSendEvent event) {
4040
4141 if (mapData .getDecorations () != null ) {
4242 while (mapData .getDecorations ().size () > maxCursors ) {
43+ // Todo: remove cursors on underlying canvas instead of the packet using reflection
4344 mapData .getDecorations ().remove (GenericUtil .RANDOM .nextInt (mapData .getDecorations ().size ()));
4445 event .markForReEncode (true );
4546 }
You can’t perform that action at this time.
0 commit comments