selective primed tnt is rendered as the block it explodes
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user