Sound fixes
This commit is contained in:
BIN
core/assets/sounds/shield.ogg
Normal file
BIN
core/assets/sounds/shield.ogg
Normal file
Binary file not shown.
@@ -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();
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=4e15523716770c3e5f8b370c65b8321f54a907f8
|
||||
archash=58b501b11bd5a2aae47e5722a235f86c760b9cf1
|
||||
|
||||
Reference in New Issue
Block a user