Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wrefgtzweve committed Apr 2, 2024
1 parent 7057c36 commit fc50017
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/entities/gmod_wire_expression2/core/custom/prop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ __e2setcost(30)
local function removeAllIn( self, tbl )
local count = 0
for k,v in pairs( tbl ) do
if (IsValid(v) and isOwner(self,v) and !v:IsPlayer()) then
if (IsValid(v) and isOwner(self,v) and not v:IsPlayer()) then
count = count + 1
v:Remove()
end
Expand Down Expand Up @@ -425,9 +425,10 @@ e2function number entity:propGetElasticity()
return this:GetElasticity()
end

local persistCvar = GetConVar("sbox_persist")
e2function void entity:propMakePersistent(number persistent)
if not ValidAction(self, this, "persist") then return end
if GetConVarString("sbox_persist") == "0" then return end
if not persistCvar:GetBool() then return end
if not gamemode.Call("CanProperty", self.player, "persist", this) then return end
this:SetPersistent(persistent ~= 0)
end
Expand Down

0 comments on commit fc50017

Please sign in to comment.