Mojira Archive
MC-109100

Shulkers on the side of a block are not flipped when renamed "Dinnerbone" or "Grumm"

Every time i go to place a Shulker named "Dinnerbone" or "Grumm" on every side (not the top or bottom) it renders somewhat normally except its not upside down.
I thought it would be to where the bottom texture of the Shulker would show up on the opposite side its supposed to, what i got is only the shulkers placed on the top & bottom east & west flipping correctly.

This affects 1.9+

the code below is probably outdated


Code Analysis

The method responsible for rotating an entity named "Dinnerbone" or "Grumm", net.minecraft.client.renderer.entity.RenderLivingBase.rotateCorpse(T entityLiving, float p_77043_2_, float p_77043_3_, float partialTicks), will render the entity 2 pixels higher than it's actual height.

GlStateManager.translate(0.0F, entityLiving.height + 0.1F, 0.0F);

The reason the Shulker appears that it is not flipped is because the code does not take the Shulkers rotation into consideration.