-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from Dragon-Seeker/1.21-FixConfigRendering
[1.21] Fix config rendering be black and oddly hard to look at.
- Loading branch information
Showing
5 changed files
with
316 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.wispforest.owo.mixin; | ||
|
||
import net.minecraft.client.gui.CubeMapRenderer; | ||
import net.minecraft.client.gui.RotatingCubeMapRenderer; | ||
import net.minecraft.client.gui.screen.Screen; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(Screen.class) | ||
public interface ScreenAccessor { | ||
@Accessor("PANORAMA_RENDERER") | ||
static CubeMapRenderer owo$PANORAMA_RENDERER() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@Accessor("ROTATING_PANORAMA_RENDERER") | ||
static RotatingCubeMapRenderer owo$ROTATING_PANORAMA_RENDERER() { | ||
throw new UnsupportedOperationException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.