Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
ef637086
Commit
ef637086
authored
May 17, 2022
by
Benjamin Elsdon
Committed by
Melledy
May 17, 2022
Browse files
Change BANNED_PACKETS to HashSet instaed of List
parent
fffa5a9c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java
View file @
ef637086
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
);
}};
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment