Pan4ur / ThunderHack-Recode

1.21 minecraft client for Crystal / Sword hvh
https://thunderhack.net/
GNU General Public License v3.0
250 stars 65 forks source link

support macos #89

Closed WaffleHFB closed 1 year ago

WaffleHFB commented 1 year ago

support macos plzzzz thx :)))

06ED commented 1 year ago

pls send your crashlog

WaffleHFB commented 1 year ago

Below is the log:

[19:26:59] [main/INFO]: Loading Minecraft 1.20.2 with Fabric Loader 0.14.22 [19:26:59] [main/INFO]: Loading 55 mods:

When it opens, it displays a window that says: GLFW error 65548: Cocoa: Regular windows do not have icons on macOS. Please make sure you have up-to-date drivers (see aka.ms/mcdriver for instructions).

Pan4ur commented 1 year ago

I'll try to fix it today

WaffleHFB commented 1 year ago

thx<3

HenryXiaoYang commented 1 year ago

This is a issue with glfw, you can't possibly fix it. You need a mod called Chameleon to fix the glfw. However, Chameleon's mixin will conflict with ThunderHack's. Specifically, class "onChangeIcon". The minecraft set window icon class had been redirected by both mod, and cause crash.

What I did is that I deleted the redirect of class "onChangeIcon" and the code inside the class.

HenryXiaoYang commented 1 year ago

This is a issue with glfw, you can't possibly fix it. You need a mod called Chameleon to fix the glfw. However, Chameleon's mixin will conflict with ThunderHack's. Specifically, class "onChangeIcon". The minecraft set window icon class had been redirected by both mod, and cause crash.

What I did is that I deleted the redirect of class "onChangeIcon" and the code inside the class.

Oh, the "onChangeIcon" class is here: src/main/java/thunder/hack/injection/MixinMinecraftClient.java

Pan4ur commented 1 year ago

Mb fixed try plz and reply

WaffleHFB commented 1 year ago

It's ready, thx