Skip to content

Commit

Permalink
bleh
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Mar 1, 2021
1 parent b7ef3e0 commit b01cc70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CustomItems/Items/GrenadeLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ protected override void OnReloading(ReloadingWeaponEventArgs ev)
{
ev.IsAllowed = false;

if (ev.Player.CurrentItem.durability >= ClipSize)
return;

Log.Debug($"{ev.Player.Nickname} is reloading a {Name}!", CustomItems.Instance.Config.IsDebugEnabled);

foreach (Inventory.SyncItemInfo item in ev.Player.Inventory.items.ToList())
Expand Down

0 comments on commit b01cc70

Please sign in to comment.