Skip to content

Commit 466a72b

Browse files
committed
Fix the Hitboxes mixin target that crashed the game on startup
The @WrapOperation on Entity.isInvisible used field-target syntax for a method target ("isInvisible:()Z"), which is how javap prints a constant pool entry but not what Mixin's @at accepts. Mixin rejected it with "Invalid name: isInvisible:", EntityRenderDispatcher failed to transform, and the client died before reaching the main menu. Drop the colon so the target parses as a method. The colon is still correct on the renderHitboxes FIELD target directly above. Verified by running the 1.8.9 client: it now boots with no mixin errors, the Hitboxes category renders under Rendering, and hitboxes draw in world with the per-type colours (self cyan, passive green, hostile dark red, items yellow) plus the eye-height and look-vector lines. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XmYtYPapkLEw3N96pZf7Pv
1 parent b15247f commit 466a72b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎versions/1.8.9/src/main/java/io/github/axolotlclient/mixin/EntityRenderDispatcherMixin.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public abstract class EntityRenderDispatcherMixin {
4646
return original.call(instance);
4747
}
4848

49-
@WrapOperation(method = "render(Lnet/minecraft/entity/Entity;DDDFFZ)Z", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;isInvisible:()Z"))
49+
@WrapOperation(method = "render(Lnet/minecraft/entity/Entity;DDDFFZ)Z", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;isInvisible()Z"))
5050
private boolean dolphinclient$showInvisibleHitboxes(Entity entity, Operation<Boolean> original) {
5151
if (Hitboxes.getInstance().shouldRender(entity)) {
5252
return false;

0 commit comments

Comments
 (0)