Stopped throwing exception if mod versions are mismatched.

This commit is contained in:
2022-01-19 02:36:05 +00:00
parent 89c9d06341
commit 5896655b45

View File

@ -54,8 +54,7 @@ public class Network {
String clientNetVersion = (senderIsServer) ? VERSION : readNetVersion(buffer); String clientNetVersion = (senderIsServer) ? VERSION : readNetVersion(buffer);
String clientModVersion = (senderIsServer) ? TotemOfReviving.getVersion() : readModVersion(buffer); String clientModVersion = (senderIsServer) ? TotemOfReviving.getVersion() : readModVersion(buffer);
if (!serverNetVersion.equals(clientNetVersion) || if (!serverNetVersion.equals(clientNetVersion)) {
!serverModVersion.equals(clientModVersion) && !serverModVersion.equals("NONE") && !clientModVersion.equals("NONE")) {
throw new MismatchedVersionException( throw new MismatchedVersionException(
String.format("The server and client are running different versions of [Micle's Totem of Reviving]. " + String.format("The server and client are running different versions of [Micle's Totem of Reviving]. " +
"Try updating this mod on either the client and or the server. " + "Try updating this mod on either the client and or the server. " +