File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -2838,15 +2838,8 @@ protected void processLogin() {
2838
2838
ResourcePacksInfoPacket infoPacket = new ResourcePacksInfoPacket ();
2839
2839
2840
2840
infoPacket .resourcePackEntries = Arrays .stream (this .server .getResourcePackManager ().getResourceStack ())
2841
- .filter (pack -> pack .getPackProtocol () <= protocol )
2842
- .collect (Collectors .collectingAndThen (
2843
- Collectors .groupingBy (
2844
- ResourcePack ::getPackProtocol ,
2845
- TreeMap ::new ,
2846
- Collectors .toList ()
2847
- ),
2848
- map -> map .isEmpty () ? ResourcePack .EMPTY_ARRAY : map .lastEntry ().getValue ().toArray (ResourcePack []::new )
2849
- ));
2841
+ .filter (pack -> pack .getPackProtocol () <= protocol )
2842
+ .toArray (ResourcePack []::new );
2850
2843
2851
2844
infoPacket .mustAccept = this .server .getForceResources ();
2852
2845
this .dataPacket (infoPacket );
You can’t perform that action at this time.
0 commit comments