Do not rely on error handling popup for sodium info (fixes #392)

Instead we now disable all the Render buttons and give them a tooltip. Much more
user-friendly.
This commit is contained in:
Jonas Herzig
2020-11-05 17:31:37 +01:00
parent 76bec31cd8
commit dd5935649d
5 changed files with 37 additions and 14 deletions

View File

@@ -63,15 +63,6 @@ public class ChunkLoadingRenderGlobal {
}
private void install() {
//#if FABRIC>=1
if (net.fabricmc.loader.api.FabricLoader.getInstance().isModLoaded("sodium")) {
throw new UnsupportedOperationException(
"Rendering is not currently supported while Sodium is installed.\n" +
"See https://github.com/ReplayMod/ReplayMod/issues/150\n" +
"For now, you need to uninstall Sodium before rendering!"
);
}
//#endif
try {
//#if MC>=11400
Field hookField = WorldRenderer.class.getField("replayModRender_hook");