Fix rendering with OF F1_pre13 (via OptiFabric) installed
Note that to run it in dev env, one must switch back fabric-api to 0.2.
This commit is contained in:
@@ -44,7 +44,11 @@ public class ShaderBeginRender extends EventRegistrations {
|
||||
// check if Shaders are enabled
|
||||
if (!(boolean) (ShaderReflection.config_isShaders.invoke(null))) return;
|
||||
|
||||
ShaderReflection.shaders_beginRender.invoke(null, mc, getRenderPartialTicks(), 0);
|
||||
ShaderReflection.shaders_beginRender.invoke(null, mc,
|
||||
//#if MC>=11400
|
||||
mc.gameRenderer.getCamera(),
|
||||
//#endif
|
||||
getRenderPartialTicks(), 0);
|
||||
} catch (IllegalAccessException | InvocationTargetException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user