selective primed tnt is rendered as the block it explodes

This commit is contained in:
Jenny 2025-01-27 16:32:26 +01:00
parent 2aaecd9668
commit 793b77cfb6
Signed by: Jenny
GPG Key ID: 4A98012FB1C39311
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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();
}
}