mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed sounds not playing when dashing
This commit is contained in:
parent
a373e82872
commit
f5a85b9c02
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ public class PlayerPhysics extends EntityPhysics<PlayerEntity> implements Tickab
|
||||||
}
|
}
|
||||||
|
|
||||||
private void playSound(SoundEvent sound, float volume, float pitch) {
|
private void playSound(SoundEvent sound, float volume, float pitch) {
|
||||||
entity.getWorld().playSoundFromEntity(entity, entity, sound, SoundCategory.PLAYERS, volume, pitch);
|
entity.getWorld().playSoundFromEntity(entity.getWorld().isClient ? entity : null, entity, sound, SoundCategory.PLAYERS, volume, pitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void tickNaturalFlight(MutableVector velocity) {
|
private void tickNaturalFlight(MutableVector velocity) {
|
||||||
|
|
Loading…
Reference in a new issue