selective primed tnt is rendered as the block it explodes

This commit is contained in:
Jenny committed 2025-01-27 16:32:26 +01:00
1 parent 2aaecd9668
commit 793b77cfb6
2 files changed
+6 -1

No files matched your search

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