Repository: cabaletta/baritone (language: java)

Issue:
Unsupported CPU message on neoforge, works on fabric
## Some information
Operating system: openSUSE Tumbleweed 20250217
Java version: 21.0.3
Minecraft version: 1.21.4
Baritone version: baritone-standalone-neoforge-1.11.1-2-ga0f100f4 from https://github.com/cabaletta/baritone/actions/runs/12592616905
Other mods (if used): -
Launcher: Prism Launcher 9.2 (flatpak)

The exact same configuration works when using the fabric standalone variant (baritone-standalone-fabric-1.11.1-2-ga0f100f4 from same artifact)

## Exception, error or logs

[latest.log](https://github.com/user-attachments/files/18912786/latest.log)

[debug.log](https://github.com/user-attachments/files/18912807/debug.log)

## How to reproduce
1. Set a goal `#thisway 1000`
2. `#path`
3. `#elytra`

## Modified settings
from `baritone/settings.txt`
```
allowVines true
allowParkour true
elytraSmoothLook true
elytraConserveFireworks true
elytraTermsAccepted true
```


## Final checklist
- [x] I know how to properly use check boxes 
- [X] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- [X] I have included logs, exceptions and / or steps to reproduce the issue.
- [X] I have not used any OwO's or UwU's in this issue.


Let me know if there's more helpful info to provide


Discussion / hints:
Can confirm this happens with a fresh install of the Neoforge and Baritone versions you listed (as well as Neoforge 21.4.95). The PC I used runs Ubuntu on a x86 CPU and I also used it a week ago to record the video [here](https://github.com/cabaletta/baritone/issues/4610#issuecomment-2658010335).

As in your case both log files show no indication of the error besides the chat message. However the prismlauncher log window *does* show an exception, along with output from nether-pathfinder.

<details><summary>log excerpt</summary>

```
[nether-pathfinder] Created temp file at /tmp/libnether_pathfinder-x86_642715503179509369379.so
[nether-pathfinder] Failed to load shared library
java.lang.NoSuchMethodError: <init>
	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418)
	at java.base/java.lang.Runtime.load0(Runtime.java:852)
	at java.base/java.lang.System.load(System.java:2025)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/dev.babbaj.pathfinder.NetherPathfinder.<clinit>(Unknown Source)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.kg.a(Unknown Source)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.jq.a(Unknown Source)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.a.a(Unknown Source)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.a.<init>(Unknown Source)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.BaritoneProvider.b(Unknown Source)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.BaritoneProvider.<init>(Unknown Source)
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
	at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:304)
	at java.base/java.lang.Class.newInstance(Class.java:725)
	at TRANSFORMER/baritoe@1.11.1-2-ga0f100f4/baritone.c.<clinit>(Unknown Source)
	at TRANSFORMER/minecraft@1.21.4/net.minecraft.client.Minecraft.handler$zzh000$baritoe$postInit(Minecraft.java)
	at TRANSFORMER/minecraft@1.21.4/net.minecraft.client.Minecraft.<init>(Minecraft.java:662)
	at TRANSFORMER/minecraft@1.21.4/net.minecraft.client.main.Main.main(Main.java:225)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at MC-BOOTSTRAP/fml_loader@6.0.9/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:128)
	at MC-BOOTSTRAP/fml_loader@6.0.9/net.neoforged.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:120)
	at MC-BOOTSTRAP/fml_loader@6.0.9/net.neoforged.fml.loading.targets.NeoForgeClientLaunchHandler.runService(NeoForgeClientLaunchHandler.java:39)
	at MC-BOOTSTRAP/fml_loader@6.0.9/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:114)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.Launcher.run(Launcher.java:103)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
	at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
	at cpw.mods.bootstraplauncher@2.0.2/cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
	at cpw.mods.bootstraplauncher@2.0.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
```

</details>


Additionally the JVM segfaulted when I closed the game, no idea whether that's related.

Fix patch:
diff --git a/scripts/proguard.pro b/scripts/proguard.pro
index 34b76170f..0b764e4d9 100644
--- a/scripts/proguard.pro
+++ b/scripts/proguard.pro
@@ -54,6 +54,11 @@
 -dontwarn baritone.utils.schematic.schematica.**
 -dontwarn baritone.utils.schematic.litematica.**
 
+# nether-pathfinder uses JNI to acess its own classes
+# and some of our builds include it before running proguard
+# conservatively keep all of it, even though only PathSegment.<init> is needed
+-keep,allowoptimization class dev.babbaj.pathfinder.** { *; }
+
 # Keep - Applications. Keep all application classes, along with their 'main'
 # methods.
 -keepclasseswithmembers public class * {
diff --git a/src/main/java/baritone/command/defaults/ElytraCommand.java b/src/main/java/baritone/command/defaults/ElytraCommand.java
index 3f7b6bfd6..2f5eff352 100644
--- a/src/main/java/baritone/command/defaults/ElytraCommand.java
+++ b/src/main/java/baritone/command/defaults/ElytraCommand.java
@@ -216,7 +216,7 @@ private static String unsupportedSystemMessage() {
         final String osArch = System.getProperty("os.arch");
         final String osName = System.getProperty("os.name");
         return String.format(
-                "Legacy architectures are not supported. Your CPU is %s and your operating system is %s. " +
+                "Failed loading native library. Your CPU is %s and your operating system is %s. " +
                         "Supported architectures are 64 bit x86, and 64 bit ARM. Supported operating systems are Windows, " +
                         "Linux, and Mac",
                 osArch, osName


Test patch: