merge entity case

This commit is contained in:
sisyphussy committed 2025-12-17 14:01:18 +01:00
1 parent 6650ba684d
commit 279fccc201
1 file changed
+1 -13
@@ -39,7 +39,6 @@ public class CosmicItemRenderer implements IItemRenderer {
if (item.isOnItemFrame()) GL11.glTranslatef(0F, -0.3F, 0.01F);
render(item, null);
GL11.glPopMatrix();
break;
}
case EQUIPPED, EQUIPPED_FIRST_PERSON: {
@@ -177,18 +176,7 @@ public class CosmicItemRenderer implements IItemRenderer {
public void processLightLevel(ItemRenderType type, ItemStack item, Object... data) {
switch (type) {
case ENTITY: {
EntityItem ent = (EntityItem) (data[1]);
if (ent != null) {
CosmicRenderShenanigans.setLightFromLocation(
ent.worldObj,
MathHelper.floor_double(ent.posX),
MathHelper.floor_double(ent.posY),
MathHelper.floor_double(ent.posZ));
}
break;
}
case EQUIPPED, EQUIPPED_FIRST_PERSON: {
case ENTITY, EQUIPPED, EQUIPPED_FIRST_PERSON: {
EntityLivingBase ent = (EntityLivingBase) (data[1]);
if (ent != null) {
CosmicRenderShenanigans.setLightFromLocation(