Skip to content

Commit

Permalink
Fix Fabric not loading properly + semi-fix keybinds not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jan 27, 2025
1 parent 0890614 commit 34df51f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ object KeybindManager {
}.register()
eventHandler { (screen): ScreenOpenEvent ->
if (screen == null) keyBinder.release()
}
}.register()

val m = Int2IntMap(8)
m[UKeyboard.KEY_LSHIFT] = KeyModifiers.LSHIFT.value.toInt()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,22 @@ public List<String> getMixins() {
}
} else {
// fabric specific
mixins.add("Mixin_ModernEntrypoint");
mixins.add("fabric.Mixin_LoadShaderInvoker");
mixins.add("fabric.Mixin_ChatReceiveEvent_Fabric");
if (version < 11300) {
if (version <= 11300) {
// legacy fabric
mixins.add("commands.Mixin_IncludeCommandSuggestions");
mixins.add("Mixin_ExecuteCommandsFromScreen");
}

if (version > 12000) {
mixins.add("hypixel.Mixin_CaptureHypixelPayloads");
}
}

// Inter-loader mixins
if (version >= 11600) {
mixins.add("Mixin_ModernEntrypoint");
mixins.add("commands.Mixin_AppendCustomCommands");

if (version < 11900) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.polyfrost.oneconfig.internal.mixin;

//#if MC >= 1.16.5
//$$ import net.minecraft.client.Minecraft;
//#if FABRIC
//$$ import net.minecraft.client.MinecraftClient;
//$$ import org.polyfrost.oneconfig.internal.OneConfig;
//$$ import org.spongepowered.asm.mixin.Mixin;
//$$ import org.spongepowered.asm.mixin.Unique;
//$$ import org.spongepowered.asm.mixin.injection.At;
//$$ import org.spongepowered.asm.mixin.injection.Inject;
//$$ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
//$$
//$$ @Mixin(Minecraft.class)
//$$ @Mixin(MinecraftClient.class)
//$$ public class Mixin_ModernEntrypoint {
//$$
//$$ @Unique
Expand Down

0 comments on commit 34df51f

Please sign in to comment.