mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 22:44:07 +01:00
Enforce network version
This commit is contained in:
parent
b1aeba61c0
commit
e1d1b062f8
@ -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 New Issue
Block a user