mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-11 04:22:00 +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() {
|
public static void registerPackets() {
|
||||||
channel = NetworkRegistry.ChannelBuilder.named(CHANNEL_NAME)
|
channel = NetworkRegistry.ChannelBuilder.named(CHANNEL_NAME)
|
||||||
.serverAcceptedVersions(s -> true)
|
.serverAcceptedVersions(NETWORK_VERSION::equals)
|
||||||
.clientAcceptedVersions(s -> true)
|
.clientAcceptedVersions(NETWORK_VERSION::equals)
|
||||||
.networkProtocolVersion(() -> NETWORK_VERSION)
|
.networkProtocolVersion(() -> NETWORK_VERSION)
|
||||||
.simpleChannel();
|
.simpleChannel();
|
||||||
for (AllPackets packet : values())
|
for (AllPackets packet : values())
|
||||||
|
|
Loading…
Reference in a new issue