Sound fixes

This commit is contained in:
Anuken
2020-11-07 14:13:35 -05:00
parent 65990ad817
commit 846f3a29eb
3 changed files with 8 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ public class ForceProjector extends Block{
hasPower = true;
hasLiquids = true;
hasItems = true;
idleSound = Sounds.shield;
idleSoundVolume = 0.08f;
consumes.add(new ConsumeLiquidFilter(liquid -> liquid.temperature <= 0.5f && liquid.flammability < 0.1f, 0.1f)).boost().update(false);
}
@@ -107,6 +109,11 @@ public class ForceProjector extends Block{
drawer.add();
}
@Override
public boolean shouldIdleSound(){
return !broken && realRadius() > 1f;
}
@Override
public void onRemoved(){
super.onRemoved();