From c48a5124dee94532d053645658c4b940f09aa009 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 7 Sep 2018 18:26:45 -0700 Subject: [PATCH] Allow connecting to realms as well --- ...minecraft.realms.RealmsSharedConstants.patch | 17 +++++++++++++++++ 1.13.1/src/main/java/wdl/VersionConstants.java | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 1.13.1/src/main/base-patches/net.minecraft.realms.RealmsSharedConstants.patch diff --git a/1.13.1/src/main/base-patches/net.minecraft.realms.RealmsSharedConstants.patch b/1.13.1/src/main/base-patches/net.minecraft.realms.RealmsSharedConstants.patch new file mode 100644 index 000000000..5a40ae20c --- /dev/null +++ b/1.13.1/src/main/base-patches/net.minecraft.realms.RealmsSharedConstants.patch @@ -0,0 +1,17 @@ +--- net/minecraft/realms/RealmsSharedConstants.java ++++ net/minecraft/realms/RealmsSharedConstants.java +@@ -3,8 +3,12 @@ + import net.minecraft.util.SharedConstants; + + public class RealmsSharedConstants { +- public static final int NETWORK_PROTOCOL_VERSION = 393; ++ /* WDL 1.13.1 >>> */ ++ public static final int NETWORK_PROTOCOL_VERSION = 401; ++ /* <<< WDL */ + public static final int TICKS_PER_SECOND = 20; +- public static final String VERSION_STRING = "1.13"; ++ /* WDL 1.13.1 >>> */ ++ public static final String VERSION_STRING = "1.13.1"; ++ /* <<< WDL */ + public static final char[] ILLEGAL_FILE_CHARACTERS = SharedConstants.ILLEGAL_FILE_CHARACTERS; + } diff --git a/1.13.1/src/main/java/wdl/VersionConstants.java b/1.13.1/src/main/java/wdl/VersionConstants.java index e9762e480..7d3b3cc50 100644 --- a/1.13.1/src/main/java/wdl/VersionConstants.java +++ b/1.13.1/src/main/java/wdl/VersionConstants.java @@ -16,7 +16,7 @@ import net.minecraft.client.ClientBrandRetriever; import net.minecraft.client.Minecraft; -import net.minecraft.realms.RealmsSharedConstants; +//import net.minecraft.realms.RealmsSharedConstants; /** * Contains constants that vary between versions of the mod. @@ -40,7 +40,7 @@ public static int getProtocolVersion() { * @return A version string, eg 1.11. */ public static String getMinecraftVersion() { - return RealmsSharedConstants.VERSION_STRING + "-1.13.1 PH"; + return "1.13-1.13.1 PH"; } /**