Skip to content

fix MC-115092 #423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PATCHED.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| Basic | [MC-90683](https://bugs.mojang.com/browse/MC-90683) | "Received unknown passenger" - Entities with differing render distances as passengers outputs error |
| Basic | [MC-93384](https://bugs.mojang.com/browse/MC-93384) | Bubbles appear at the feet of drowning mobs |
| Basic | [MC-105068](https://bugs.mojang.com/browse/MC-105068) | Hitting another player blocking with a shield plays normal hurt sound |
| Basic | [MC-115092](https://bugs.mojang.com/browse/MC-115092) | Squid/glow squid named "Dinnerbone" or "Grumm" is not upside-down |
| Basic | [MC-116379](https://bugs.mojang.com/browse/MC-116379) | Punching with a cast fishing rod in the off-hand detaches fishing line from rod |
| Basic | [MC-122627](https://bugs.mojang.com/browse/MC-122627) | Tab suggestion box has missing padding on right side |
| Basic | [MC-122477](https://bugs.mojang.com/browse/MC-122477) | Linux/GNU: Opening chat sometimes writes 't |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package dev.isxander.debugify.client.mixins.basic.mc115092;

import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Axis;
import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.client.renderer.entity.SquidRenderer;
import net.minecraft.client.renderer.entity.state.SquidRenderState;
import net.minecraft.world.entity.animal.Squid;
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;

@BugFix(id = "MC-115092", category = FixCategory.BASIC, env = BugFix.Env.CLIENT, description = "Squid/glow squid named \"Dinnerbone\" or \"Grumm\" is not upside-down")
@Mixin(SquidRenderer.class)
public class SquidRendererMixin<T extends Squid> {
@Unique
T squidEntity;

@Inject(method = "extractRenderState(Lnet/minecraft/world/entity/animal/Squid;Lnet/minecraft/client/renderer/entity/state/SquidRenderState;F)V", at = @At("TAIL"))
private void getSquidEntity(T squid, SquidRenderState squidRenderState, float f, CallbackInfo ci) {
squidEntity = squid;
}

@Inject(method = "setupRotations(Lnet/minecraft/client/renderer/entity/state/SquidRenderState;Lcom/mojang/blaze3d/vertex/PoseStack;FF)V", at = @At("TAIL"))
private void applyRotation(SquidRenderState squidRenderState, PoseStack poseStack, float f, float g, CallbackInfo ci) {
String name = squidEntity.getName().getString();
if ("Dinnerbone".equals(name) || "Grumm".equals(name)) {
poseStack.translate(0.0F, squidEntity.getBbHeight() + 0.1F, 0.0F);
poseStack.mulPose(Axis.XP.rotationDegrees(180.0F));
}
}
}
1 change: 1 addition & 0 deletions src/client/resources/debugify.client.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"plugin": "dev.isxander.debugify.mixinplugin.MixinPlugin",
"client": [
"basic.mc105068.LivingEntityMixin",
"basic.mc115092.SquidRendererMixin",
"basic.mc116379.FishingHookRendererMixin",
"basic.mc122477.EditBoxMixin",
"basic.mc122477.RenderSystemMixin",
Expand Down