mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 04:12:54 +08:00
Change BANNED_PACKETS to HashSet instaed of List
This commit is contained in:
parent
fffa5a9c47
commit
ef63708675
@ -1,6 +1,7 @@
|
||||
package emu.grasscutter.net.packet;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
public class PacketOpcodes {
|
||||
@ -1556,5 +1557,8 @@ public class PacketOpcodes {
|
||||
public static final int UNKNOWN_44 = 8983;
|
||||
public static final int UNKNOWN_45 = 943;
|
||||
|
||||
public static final List<Integer> BANNED_PACKETS = Arrays.asList(PacketOpcodes.WindSeedClientNotify, PacketOpcodes.PlayerLuaShellNotify);
|
||||
public static final HashSet<Integer> BANNED_PACKETS = new HashSet<Integer>() {{
|
||||
add(PacketOpcodes.WindSeedClientNotify);
|
||||
add(PacketOpcodes.PlayerLuaShellNotify);
|
||||
}};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user