修复野兽弹的音效问题
This commit is contained in:
parent
abb42ed4ca
commit
6aba0b4f15
1 changed files with 4 additions and 0 deletions
|
@ -304,6 +304,10 @@ public class GunEventHandler {
|
||||||
|
|
||||||
if (perk == ModPerks.BEAST_BULLET.get()) {
|
if (perk == ModPerks.BEAST_BULLET.get()) {
|
||||||
player.playSound(ModSounds.HENG.get(), 5f, 1f);
|
player.playSound(ModSounds.HENG.get(), 5f, 1f);
|
||||||
|
|
||||||
|
if (player instanceof ServerPlayer serverPlayer) {
|
||||||
|
SoundTool.playLocalSound(serverPlayer, ModSounds.HENG.get(), 5f, 1f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation(ModUtils.MODID, name + "_fire_1p"));
|
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation(ModUtils.MODID, name + "_fire_1p"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue