From 6de43fa8b2b3148cfd94643febe958336c2af53b Mon Sep 17 00:00:00 2001 From: Mohammad-Ali Minaie Date: Fri, 24 Mar 2017 18:03:15 -0400 Subject: [PATCH] sound working needs editing --- .../java/nmd/primal/forgecraft/blocks/PistonBellows.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/1.11/src/main/java/nmd/primal/forgecraft/blocks/PistonBellows.java b/1.11/src/main/java/nmd/primal/forgecraft/blocks/PistonBellows.java index b36bde1e..6752ba02 100644 --- a/1.11/src/main/java/nmd/primal/forgecraft/blocks/PistonBellows.java +++ b/1.11/src/main/java/nmd/primal/forgecraft/blocks/PistonBellows.java @@ -74,7 +74,10 @@ public class PistonBellows extends CustomContainerFacing { if(state.getValue(this.ACTIVE) == false) { world.setBlockState(pos, state.withProperty(ACTIVE, true), 2); //world.playSound(pos, ForgecraftSounds.PISTON_BELLOWS, SoundCategory.BLOCKS, 1.0f, 1.0f); - world.playSound((double)pos.getX(), (double)pos.getY(), (double)pos.getZ(), ModSounds.PISTON_BELLOWS, SoundCategory.BLOCKS, 1.0f, 1.0f, true); + //world.playSound((double)pos.getX(), (double)pos.getY(), (double)pos.getZ(), ModSounds.PISTON_BELLOWS, SoundCategory.BLOCKS, 1.0f, 1.0f, true); + world.playSound(null, pos, ModSounds.PISTON_BELLOWS, SoundCategory.BLOCKS, 1.0F, 1.0F); + //playSound(@Nullable EntityPlayer player, double x, double y, double z, SoundEvent soundIn, SoundCategory category, float volume, float pitch) + if (state.getValue(PistonBellows.FACING) == EnumFacing.NORTH) { BlockPos tempPos = new BlockPos(pos.getX() + 1, pos.getY(), pos.getZ());