Skip to content

Commit 9b559e9

Browse files
committed
add todo
1 parent b378865 commit 9b559e9

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

2 files changed

+2
-0
lines changed

AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/packets/MapCursorLag.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/packets/MapCursorLag.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)