Fix invisible entities showing the frost layer

This commit is contained in:
Electroblob77
2020-06-14 14:54:41 +01:00
parent 238b9d04bb
commit 732621f37c
@@ -26,7 +26,7 @@ public class LayerFrost extends LayerTiledOverlay<EntityLivingBase> {
@Override
public boolean shouldRender(EntityLivingBase entity, float partialTicks){
return entity.isPotionActive(WizardryPotions.frost) || entity.getEntityData().getBoolean(BlockStatue.FROZEN_NBT_KEY);
return !entity.isInvisible() && entity.isPotionActive(WizardryPotions.frost) || entity.getEntityData().getBoolean(BlockStatue.FROZEN_NBT_KEY);
}
@Override