fix: Mined sound
This commit is contained in:
parent
25fb664b8d
commit
e58c7be90d
@ -310,7 +310,7 @@ public class Game extends AutoTransientSupport {
|
||||
for (Block block : blocksCopy) {
|
||||
if (block.getClass().isAnnotationPresent(MineSound.class)) {
|
||||
new Thread(() -> {
|
||||
var anot = block.getClass().getAnnotation(MiningSound.class);
|
||||
var anot = block.getClass().getAnnotation(MineSound.class);
|
||||
gameStates.dependencies.sound.playSound(configuration, anot.value(), anot.annotationType());
|
||||
}).start();
|
||||
}
|
||||
|
@ -4,11 +4,10 @@ import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SoundType {
|
||||
BLOCK(0),
|
||||
WALKING(100),
|
||||
MINING(100);
|
||||
BLOCK(100),
|
||||
WALKING(15),
|
||||
MINING(25);
|
||||
|
||||
// TODO: Volume is not currently used but will be probably used in future to better normalize the sound volume
|
||||
private final int volume;
|
||||
|
||||
SoundType(int volume) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user