Destructor makes block break noise now
This commit is contained in:
@@ -46,6 +46,7 @@ public class TileDestructor extends TileMachine implements ICompareConfig, IMode
|
|||||||
if (ModeConfigUtils.doesNotViolateMode(inventory, this, compare, new ItemStack(frontBlock, 1, frontBlock.getMetaFromState(frontBlockState)))) {
|
if (ModeConfigUtils.doesNotViolateMode(inventory, this, compare, new ItemStack(frontBlock, 1, frontBlock.getMetaFromState(frontBlockState)))) {
|
||||||
List<ItemStack> drops = frontBlock.getDrops(worldObj, front, frontBlockState, 0);
|
List<ItemStack> drops = frontBlock.getDrops(worldObj, front, frontBlockState, 0);
|
||||||
|
|
||||||
|
worldObj.playAuxSFXAtEntity(null, 2001, front, Block.getStateId(frontBlockState));
|
||||||
worldObj.setBlockToAir(front);
|
worldObj.setBlockToAir(front);
|
||||||
|
|
||||||
for (ItemStack drop : drops) {
|
for (ItemStack drop : drops) {
|
||||||
|
|||||||
Reference in New Issue
Block a user