simplified the code.
This commit is contained in:
parent
945a13d4ae
commit
15db129b1d
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ public class GT_Block_Reinforced extends GT_Generic_Block {
|
|||
public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z)
|
||||
{
|
||||
if(!world.isRemote && world.getBlockMetadata(x, y, z)==5){
|
||||
EntityTNTPrimed entitytntprimed = new EntityTNTPrimed(world, x + 0.5F, y + 0.5F, z + 0.5F, player == null ? null : player);
|
||||
EntityTNTPrimed entitytntprimed = new EntityTNTPrimed(world, x + 0.5F, y + 0.5F, z + 0.5F, player);
|
||||
world.spawnEntityInWorld(entitytntprimed);
|
||||
world.playSoundAtEntity(entitytntprimed, "game.tnt.primed", 1.0F, 1.0F);
|
||||
|
||||
|
|
Loading…
Reference in a new issue