[Forge] Fixed clients without WorldEdit not being able to join servers with WorldEdit installed (#2288)

This commit is contained in:
Redstone_Dubstep 2023-03-26 14:32:20 +02:00 committed by GitHub
parent 0d8a2118f2
commit df3f7b2ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ static NetworkRegistry.ChannelBuilder buildLenientHandler(String id, int protoco
private static Predicate<String> validateLenient(String protocolVersion) { private static Predicate<String> validateLenient(String protocolVersion) {
return remoteVersion -> return remoteVersion ->
protocolVersion.equals(remoteVersion) protocolVersion.equals(remoteVersion)
|| NetworkRegistry.ABSENT.equals(remoteVersion) || NetworkRegistry.ABSENT.version().equals(remoteVersion)
|| NetworkRegistry.ACCEPTVANILLA.equals(remoteVersion); || NetworkRegistry.ACCEPTVANILLA.equals(remoteVersion);
} }
} }