From 992e1ca255e0e5db2caec9d23ba75ae66fdb296c Mon Sep 17 00:00:00 2001 From: Jenny Date: Sat, 25 Jan 2025 10:51:52 +0100 Subject: [PATCH] fixed selectivePrimedTNT selecting wrong block type --- gradle.properties | 2 +- .../enhancedexplosives/entities/tnt/selectivePrimedTNT.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index c338f8a..3b1812c 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.7.1 +mod_version=0.7.2 # 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 7a9ee02..71a6385 100644 --- a/src/main/java/com/jenny/enhancedexplosives/entities/tnt/selectivePrimedTNT.java +++ b/src/main/java/com/jenny/enhancedexplosives/entities/tnt/selectivePrimedTNT.java @@ -42,6 +42,6 @@ public class selectivePrimedTNT extends basePrimedTNT { } public String getBlock() { - return level().getBlockState(new BlockPos((int) Math.round(getX()), (int) Math.round(getY() - 1), (int) Math.round(getZ()))).getBlock().toString(); + return level().getBlockState(new BlockPos((int) getX(), (int) getY() - 1, (int) getZ())).getBlock().toString(); } }