Skip to content

Commit

Permalink
fix display tnt minecarts if not primed
Browse files Browse the repository at this point in the history
  • Loading branch information
RealMuffinTime committed Aug 28, 2024
1 parent 42b9d64 commit 94a53eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ private void onRender2D(Render2DEvent event) {
else if (type == EntityType.ITEM_FRAME)
renderNametagItem(((ItemFrameEntity) entity).getHeldItemStack(), shadow);
else if (type == EntityType.TNT) renderTntNametag(ticksToTime(((TntEntity) entity).getFuse()), shadow);
else if (type == EntityType.TNT_MINECART) renderTntNametag(ticksToTime(((TntMinecartEntity) entity).getFuseTicks()), shadow);
else if (type == EntityType.TNT_MINECART && ((TntMinecartEntity) entity).isPrimed())
renderTntNametag(ticksToTime(((TntMinecartEntity) entity).getFuseTicks()), shadow);
else if (entity instanceof LivingEntity) renderGenericNametag((LivingEntity) entity, shadow);
}
}
Expand Down

0 comments on commit 94a53eb

Please sign in to comment.