Fixed a MP server load sound crash

This commit is contained in:
Dominic committed 2021-03-20 17:41:01 -05:00
1 parent d373ba2766
commit ccdf233781
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
// Reduce volume to 30% so it stops destroying people's ears.
var sound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LargeWeaponFire");
item.UseSound = sound.WithVolume(0.3f);
item.UseSound = sound?.WithVolume(0.3f);
item.shoot = ModContent.ProjectileType<HighExplosivePeanutShell>();
item.shootSpeed = 13f;