mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 17:03:41 +01:00
Enforce network version
This commit is contained in:
parent
b1aeba61c0
commit
e1d1b062f8
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ public enum AllPackets {
|
|||
|
||||
public static void registerPackets() {
|
||||
channel = NetworkRegistry.ChannelBuilder.named(CHANNEL_NAME)
|
||||
.serverAcceptedVersions(s -> true)
|
||||
.clientAcceptedVersions(s -> true)
|
||||
.serverAcceptedVersions(NETWORK_VERSION::equals)
|
||||
.clientAcceptedVersions(NETWORK_VERSION::equals)
|
||||
.networkProtocolVersion(() -> NETWORK_VERSION)
|
||||
.simpleChannel();
|
||||
for (AllPackets packet : values())
|
||||
|
|
Loading…
Reference in a new issue