Skip to content

Commit

Permalink
Update Modern UI scale hook
Browse files Browse the repository at this point in the history
Related: #391
  • Loading branch information
embeddedt committed Sep 29, 2024
1 parent 170a1c1 commit dee0ebd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
public class MuiGuiScaleHook {
private static final Method calcGuiScalesMethod;
static {
calcGuiScalesMethod = Stream.of("icyllis.modernui.forge.MForgeCompat", "icyllis.modernui.forge.MuiForgeApi").flatMap(clzName -> {
calcGuiScalesMethod = Stream.of(
"icyllis.modernui.forge.MForgeCompat",
"icyllis.modernui.forge.MuiForgeApi",
"icyllis.modernui.mc.forge.MuiForgeApi",
"icyllis.modernui.mc.MuiModApi"
).flatMap(clzName -> {
try {
return Stream.of(Class.forName(clzName));
} catch(Throwable e) {
Expand Down

0 comments on commit dee0ebd

Please sign in to comment.