Skip to content

Commit

Permalink
Fix Shotgun Spam Loading (space-wizards#29827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cojoke-dot authored Jul 9, 2024
1 parent 8bd8787 commit 08b12f3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ private void OnBallisticAfterInteract(EntityUid uid, BallisticAmmoProviderCompon

private void OnBallisticAmmoFillDoAfter(EntityUid uid, BallisticAmmoProviderComponent component, AmmoFillDoAfterEvent args)
{
if (args.Handled || args.Cancelled)
return;

if (Deleted(args.Target) ||
!TryComp<BallisticAmmoProviderComponent>(args.Target, out var target) ||
target.Whitelist == null)
Expand Down

0 comments on commit 08b12f3

Please sign in to comment.