Skip to content

Commit

Permalink
Add castcheck. Fix #145
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed May 17, 2024
1 parent 3355870 commit b535591
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void doRenderEntity(Entity entity, double p_doRenderEntity_2_, double d1,
float tickDelta, float p_doRenderEntity_9_, boolean p_doRenderEntity_10_, CallbackInfoReturnable<Boolean> info) {
Cullable cullable = (Cullable) entity;
if (!cullable.isForcedVisible() && cullable.isCulled()) {
if (EntityCullingModBase.instance.config.renderNametagsThroughWalls && entity instanceof EntityLivingBase) {
if (EntityCullingModBase.instance.config.renderNametagsThroughWalls && entity instanceof EntityLivingBase && getEntityRenderObject(entity) instanceof RenderLivingEntityAccessor) {
RenderLivingEntityAccessor livingEntity = (RenderLivingEntityAccessor) getEntityRenderObject(entity);
livingEntity.callPassSpecialRender(((EntityLivingBase) entity), p_doRenderEntity_2_, d1, d2);
//entityRenderer.doRender(entity, entity.posX, entity.posY, entity.posZ, tickDelta, tickDelta);
Expand Down

0 comments on commit b535591

Please sign in to comment.