Skip to content

Commit

Permalink
update loom and mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed May 26, 2024
1 parent 32caa21 commit f67510c
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 31 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ loom {
"mixins.core.replaymod.json",
"mixins.extras.playeroverview.replaymod.json",
"mixins.jgui.json",
"mixins.nonmmlauncher.replaymod.json",
"mixins.recording.replaymod.json",
"mixins.render.blend.replaymod.json",
"mixins.render.replaymod.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ private void keyReleased(int i, boolean[] bls, Screen screen, int keyCode, int s
}
}

@Inject(method = "method_1458", at = @At("HEAD"), cancellable = true)
@Group(min = 1, max = 1, name = "replaymod-jgui-charTyped-int")
private void charTyped(Element element, int keyChar, int modifiers, CallbackInfo ci) {
if (KeyboardCallback.EVENT.invoker().charTyped((char) keyChar, modifiers)) {
ci.cancel();
}
}
//@Inject(method = "method_1458", at = @At("HEAD"), cancellable = true)
//@Group(min = 1, max = 1, name = "replaymod-jgui-charTyped-int")
// private static void charTyped(Element element, int keyChar, int modifiers, CallbackInfo ci) {
// if (KeyboardCallback.EVENT.invoker().charTyped((char) keyChar, modifiers)) {
// ci.cancel();
// }
// }

@Inject(method = "lambda$charTyped$5", at = @At("HEAD"), cancellable = true, remap = false)
@Group(min = 1, max = 1, name = "replaymod-jgui-charTyped-int")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class MixinMouseListener {
@Accessor // Note: for some reason Mixin doesn't include this in the refmap json if it's just a @Shadow field
abstract int getActiveButton();

@Inject(method = "method_1611", at = @At("HEAD"), cancellable = true, remap = false)
@Inject(method = "method_1611", at = @At("HEAD"), cancellable = true)
//#if MC>=11700
private void mouseDown(boolean[] result, Screen screen, double x, double y, int button, CallbackInfo ci) {
//#else
Expand All @@ -33,7 +33,7 @@ private void mouseDown(boolean[] result, Screen screen, double x, double y, int
}
}

@Inject(method = "method_1605", at = @At("HEAD"), cancellable = true, remap = false)
@Inject(method = "method_1605", at = @At("HEAD"), cancellable = true)
//#if MC>=11700
private void mouseUp(boolean[] result, Screen screen, double x, double y, int button, CallbackInfo ci) {
//#else
Expand All @@ -45,7 +45,7 @@ private void mouseUp(boolean[] result, Screen screen, double x, double y, int bu
}
}

@Inject(method = "method_1602", at = @At("HEAD"), cancellable = true, remap = false)
@Inject(method = "method_1602", at = @At("HEAD"), cancellable = true)
//#if MC>=11700
private void mouseDrag(Screen screen, double x, double y, double dx, double dy, CallbackInfo ci) {
//#else
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/mixins.compat.mapwriter.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
//#endif
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.compat.shaders.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
"MixinShadersRender"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.core.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@
"TimerAccessor"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
"MixinRender"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.jgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
//#endif
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.nonmmlauncher.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"server": [],
"client": [],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.nonmmlauncher.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.recording.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@
"MixinRenderGlobal"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.render.blend.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
//#endif
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.render.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,5 @@
"MixinRenderManager"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}
3 changes: 1 addition & 2 deletions src/main/resources/mixins.replay.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@
"Mixin_ConnectionType"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11",
"refmap": "mixins.replaymod.refmap.json"
"minVersion": "0.6.11"
}

0 comments on commit f67510c

Please sign in to comment.