Since OTM does not specifically modify vanilla behavior when it's structures are in "default" state, accept connections to vanilla servers or server with OTM missing
This commit is contained in:
parent
c356cd703e
commit
6999b42b1f
@ -38,7 +38,8 @@ interface MatteryPacket {
|
|||||||
abstract class MatteryNetworkChannel(val version: Int, val name: String) {
|
abstract class MatteryNetworkChannel(val version: Int, val name: String) {
|
||||||
val channel: SimpleChannel = ChannelBuilder
|
val channel: SimpleChannel = ChannelBuilder
|
||||||
.named(ResourceLocation(OverdriveThatMatters.MOD_ID, name))
|
.named(ResourceLocation(OverdriveThatMatters.MOD_ID, name))
|
||||||
.acceptedVersions(Channel.VersionTest.exact(version))
|
.clientAcceptedVersions { status, version -> (status == Channel.VersionTest.Status.MISSING || status == Channel.VersionTest.Status.VANILLA) || version == this.version }
|
||||||
|
.serverAcceptedVersions { status, version -> status == Channel.VersionTest.Status.PRESENT || version == this.version }
|
||||||
.networkProtocolVersion(version)
|
.networkProtocolVersion(version)
|
||||||
.simpleChannel()
|
.simpleChannel()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user