Skip to content

Commit

Permalink
Update sv_commands.lua
Browse files Browse the repository at this point in the history
Prevent item duplication
  • Loading branch information
rubiksw authored Aug 8, 2024
1 parent 9268b8c commit 4d7b65b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entities/weapons/weapon_cs_base2/sv_commands.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
local meta = FindMetaTable("Player")
function meta:dropDRPWeapon(weapon)
if !meta:IsValid() or !meta:IsPlayer() then return end
if !weapon:IsValid() or !meta:HasWeapon(weapon:GetClass()) then return end

Check warning on line 4 in entities/weapons/weapon_cs_base2/sv_commands.lua

View workflow job for this annotation

GitHub Actions / Lint / lint

"Syntax inconsistency"

Inconsistent use of 'not' and '!'

Check warning on line 5 in entities/weapons/weapon_cs_base2/sv_commands.lua

View workflow job for this annotation

GitHub Actions / Lint / lint

"Trailing whitespace"

Trailing whitespace
if GAMEMODE.Config.restrictdrop then
local found = false
for k,v in pairs(CustomShipments) do
Expand Down

0 comments on commit 4d7b65b

Please sign in to comment.