From 793b77cfb6bd9f1d4acee4d52de94de85b9ab388 Mon Sep 17 00:00:00 2001 From: Jenny Date: Mon, 27 Jan 2025 16:32:26 +0100 Subject: [PATCH] selective primed tnt is rendered as the block it explodes --- gradle.properties | 2 +- .../enhancedexplosives/entities/tnt/selectivePrimedTNT.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 21acffd..43075a8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -38,7 +38,7 @@ mod_name=Enhanced Explosives # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved # The mod version. See https://semver.org/ -mod_version=0.8.10 +mod_version=0.8.11 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/com/jenny/enhancedexplosives/entities/tnt/selectivePrimedTNT.java b/src/main/java/com/jenny/enhancedexplosives/entities/tnt/selectivePrimedTNT.java index 0afb415..137a363 100644 --- a/src/main/java/com/jenny/enhancedexplosives/entities/tnt/selectivePrimedTNT.java +++ b/src/main/java/com/jenny/enhancedexplosives/entities/tnt/selectivePrimedTNT.java @@ -45,4 +45,9 @@ public class selectivePrimedTNT extends basePrimedTNT { public String getBlock() { return level().getBlockState(new BlockPos((int) getX(), (int) getY() - 1, (int) getZ())).getBlock().toString(); } + + @Override + public Block renderBlock() { + return level().getBlockState(new BlockPos((int) getX(), (int) getY() - 1, (int) getZ())).getBlock(); + } }