We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb871d commit 3de4856Copy full SHA for 3de4856
1 file changed
src/main/java/magic/transparent_gui_background/mixin/renderer/GameRendererMixin.java
@@ -81,6 +81,16 @@ private void loadBlurEffect() {
81
}
82
83
84
+ // Run the resize function as mats need to be available even without an world loaded
85
+ @Inject(method = "resize(II)V", at = @At("HEAD"), require = 1)
86
+ public void beforeResize(int width, int height, CallbackInfo ci) {
87
+ LOGGER.info("Bhai RAN");
88
+ if (this.blurEffect != null) {
89
+ LOGGER.info("Bhai WORKED");
90
+ this.blurEffect.resize(width, height);
91
+ }
92
93
+
94
// Add our blur method in the reload section so it loads/reloads with other shaders
95
// This fires on mojang reloading/loading screen
96
@Inject(method = "reloadShaders", at =
0 commit comments