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

Binary file not shown.

View File

@@ -51,6 +51,8 @@ public class ForceProjector extends Block{
hasPower = true; hasPower = true;
hasLiquids = true; hasLiquids = true;
hasItems = 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); 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(); drawer.add();
} }
@Override
public boolean shouldIdleSound(){
return !broken && realRadius() > 1f;
}
@Override @Override
public void onRemoved(){ public void onRemoved(){
super.onRemoved(); super.onRemoved();

View File

@@ -1,3 +1,3 @@
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=4e15523716770c3e5f8b370c65b8321f54a907f8 archash=58b501b11bd5a2aae47e5722a235f86c760b9cf1