Skip to content

Commit

Permalink
Allow connecting to realms as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Sep 8, 2018
1 parent 3b2f0d1 commit c48a512
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}
4 changes: 2 additions & 2 deletions 1.13.1/src/main/java/wdl/VersionConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -40,7 +40,7 @@ public static int getProtocolVersion() {
* @return A version string, eg <samp>1.11</samp>.
*/
public static String getMinecraftVersion() {
return RealmsSharedConstants.VERSION_STRING + "-1.13.1 PH";
return "1.13-1.13.1 PH";
}

/**
Expand Down

0 comments on commit c48a512

Please sign in to comment.