File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/patches
AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/patches Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,12 @@ public void onPacketSend(PacketSendEvent event) {
5858 }
5959
6060 if (mapData .getDecorations () != null ) {
61- mapData .getDecorations ().removeIf (mapDecoration -> blacklistedDecorationTypes .contains (mapDecoration .getType ()));
62- event .markForReEncode (true );
61+ for (WrapperPlayServerMapData .MapDecoration mapDecoration : mapData .getDecorations ()) {
62+ if (blacklistedDecorationTypes .contains (mapDecoration .getType ())) {
63+ mapData .getDecorations ().remove (mapDecoration );
64+ event .markForReEncode (true );
65+ }
66+ }
6367 }
6468 }
6569}
Original file line number Diff line number Diff line change @@ -64,8 +64,12 @@ public void onPacketSend(PacketSendEvent event) {
6464 }
6565
6666 if (mapData .getDecorations () != null ) {
67- mapData .getDecorations ().removeIf (mapDecoration -> blacklistedDecorationTypes .contains (mapDecoration .getType ()));
68- event .markForReEncode (true );
67+ for (WrapperPlayServerMapData .MapDecoration mapDecoration : mapData .getDecorations ()) {
68+ if (blacklistedDecorationTypes .contains (mapDecoration .getType ())) {
69+ mapData .getDecorations ().remove (mapDecoration );
70+ event .markForReEncode (true );
71+ }
72+ }
6973 }
7074 }
7175}
You can’t perform that action at this time.
0 commit comments