File tree Expand file tree Collapse file tree
src/main/java/net/notcoded/wayfix Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11changes:
22- properly support 1.21.9+ (now including 1.21.11)
3- - (neo)forge support
3+ - (neo)forge support
4+ - fix wayfix crashing on x11 ([ #73 ] ( https://github.com/not-coded/WayFix/issues/73 ) and [ #81 ] ( https://github.com/not-coded/WayFix/issues/81 ) )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ org.gradle.parallel=false
77# org.gradle.configureondemand=true
88
99# Mod properties
10- mod.version =1.1.0
10+ mod.version =1.1.1
1111mod.group =net.notcoded
1212mod.id =wayfix
1313mod.name =WayFix
Original file line number Diff line number Diff line change @@ -36,9 +36,14 @@ public static boolean isWayland() {
3636
3737 public static boolean supportsWayland () {
3838 try {
39- return GLFW .glfwPlatformSupported (GLFW .GLFW_PLATFORM_WAYLAND ) &&
39+ boolean wayland = GLFW .glfwPlatformSupported (GLFW .GLFW_PLATFORM_WAYLAND ) &&
4040 Objects .requireNonNullElse (System .getenv ("XDG_SESSION_TYPE" ),
4141 "" ).toLowerCase ().startsWith ("wayland" );
42+ if (!wayland ) {
43+ WayFix .LOGGER .warn ("WayFix is disabling itself due to lack of Wayland support." );
44+ WayFix .LOGGER .warn ("If you are not using Wayland, please remove this mod as it is meant to be used exclusively on Wayland." );
45+ }
46+ return wayland ;
4247 } catch (NoSuchMethodError ignored ) { // <3.3.0
4348 LOGGER .warn ("WayFix is disabling itself due to the LWJGL Version being too low." );
4449 LOGGER .warn ("Please update to a LWJGL version such as '3.3.1' or higher." );
You can’t perform that action at this time.
0 commit comments