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.ListenableFuture;
//$$ import net.minecraft.client.gui.GuiButton;
//$$ import net.minecraft.realms.RealmsSharedConstants;
//#endif
//#if FABRIC>=1
@@ -146,8 +147,7 @@ public class MCVer {
//#if MC>=11400
return SharedConstants.getGameVersion().getProtocolVersion();
//#else
//$$ // FIXME
//$$ throw new UnsupportedOperationException("Minimal mode not supported pre-1.14");
//$$ return RealmsSharedConstants.NETWORK_PROTOCOL_VERSION;
//#endif
}