Implement MCVer.getProtocolVersion() for MC<11400

This commit is contained in:
Jonas Herzig
2020-04-02 02:00:18 +02:00
parent 8ce84e39e2
commit 0b31e8c9df

View File

@@ -43,6 +43,7 @@ import java.util.concurrent.CompletableFuture;
//$$ import com.google.common.util.concurrent.Futures; //$$ import com.google.common.util.concurrent.Futures;
//$$ import com.google.common.util.concurrent.ListenableFuture; //$$ import com.google.common.util.concurrent.ListenableFuture;
//$$ import net.minecraft.client.gui.GuiButton; //$$ import net.minecraft.client.gui.GuiButton;
//$$ import net.minecraft.realms.RealmsSharedConstants;
//#endif //#endif
//#if FABRIC>=1 //#if FABRIC>=1
@@ -146,8 +147,7 @@ public class MCVer {
//#if MC>=11400 //#if MC>=11400
return SharedConstants.getGameVersion().getProtocolVersion(); return SharedConstants.getGameVersion().getProtocolVersion();
//#else //#else
//$$ // FIXME //$$ return RealmsSharedConstants.NETWORK_PROTOCOL_VERSION;
//$$ throw new UnsupportedOperationException("Minimal mode not supported pre-1.14");
//#endif //#endif
} }