修复哨兵的音效丢失问题
This commit is contained in:
parent
f243b615a0
commit
f77d418978
1 changed files with 18 additions and 17 deletions
|
@ -296,8 +296,11 @@ public class GunEventHandler {
|
|||
if (soundVeryFar != null) {
|
||||
player.playSound(soundVeryFar, 24f, 1f);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation(TargetMod.MODID, name + "_fire_1p"));
|
||||
if (sound1p != null && player instanceof ServerPlayer serverPlayer) {
|
||||
SoundTool.playLocalSound(serverPlayer, sound1p, 2f, 1f);
|
||||
|
@ -317,8 +320,6 @@ public class GunEventHandler {
|
|||
if (soundVeryFar != null) {
|
||||
player.playSound(soundVeryFar, 24f, 1f);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue