Stopped throwing exception if mod versions are mismatched.
This commit is contained in:
@ -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. " +
|
||||||
|
Reference in New Issue
Block a user