Fixed a MP server load sound crash
This commit is contained in:
1 parent
d373ba2766
commit
ccdf233781
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user