-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.11.2, Minecraft 17w13a, Minecraft 17w16b, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, 20w12a, 1.16 Pre-release 3, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 2, 20w46a, 21w03a, 1.16.5, 21w05a, 21w06a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w17a, 21w18a, 1.17, 1.17.1, 1.18 Pre-release 1, 1.18, 1.18.1, 22w05a, 1.18.2, 1.19, 1.19.2, 1.19.3, 23w05a, 1.20.1, 1.20.4, 24w12a
-
Confirmed
-
Textures and models
-
Low
-
Gameplay
The bug
Squid named "Dinnerbone" or "Grumm" is not upside-down
How to reproduce
Use the following command to summon a squid named Dinnerbone:
/summon minecraft:squid ~ ~ ~ {CustomName:"{\"text\":\"Dinnerbone\"}",CustomNameVisible:1b,Silent:1b,NoAI:1b}
Code analysis
Based on 1.12.2 MCP names.
In the method net.minecraft.client.renderer.entity.RenderSquid.applyRotations() where it applies the squid's model rotations, it does not have a check if the squid is named Dinnerbone or Grumm and to rotate if so. To fix this issue, this piece of code can be added at the end of the method applyRotations().
String s = TextFormatting.getTextWithoutFormattingCodes(entityLiving.getName()); if (s != null && ("Dinnerbone".equals(s) || "Grumm".equals(s))) { GlStateManager.translate(0.0F, entityLiving.height + 0.1F, 0.0F); GlStateManager.rotate(180.0F, 0.0F, 0.0F, 1.0F); }