Skip to content

Commit a5ba568

Browse files
committed
1.1.1
1 parent cc2433e commit a5ba568

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
changes:
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))

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
1111
mod.group=net.notcoded
1212
mod.id=wayfix
1313
mod.name=WayFix

src/main/java/net/notcoded/wayfix/WayFix.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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.");

0 commit comments

Comments
 (0)