Play plunger sound when clearing fluids from GT machines

This commit is contained in:
Blood-Asp 2016-12-23 23:51:47 +01:00
parent c250d93fe5
commit 823a1fccd2

View file

@ -51,6 +51,7 @@ public class Behaviour_Plunger_Fluid
GT_MetaTileEntity_BasicTank machine = (GT_MetaTileEntity_BasicTank) mTileEntity; GT_MetaTileEntity_BasicTank machine = (GT_MetaTileEntity_BasicTank) mTileEntity;
if(machine.mFluid!=null&&machine.mFluid.amount>0) if(machine.mFluid!=null&&machine.mFluid.amount>0)
machine.mFluid.amount = machine.mFluid.amount - Math.min(machine.mFluid.amount, 1000); machine.mFluid.amount = machine.mFluid.amount - Math.min(machine.mFluid.amount, 1000);
GT_Utility.sendSoundToPlayers(aWorld, (String) GregTech_API.sSoundList.get(Integer.valueOf(101)), 1.0F, -1.0F, aX, aY, aZ);
return true; return true;
} }
} }