Implement MCVer.getProtocolVersion() for MC<11400
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user