Skip to content

Commit

Permalink
Fix pump check in E2
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Mar 16, 2024
1 parent c41efc3 commit 7a2fe92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ end

-- PUMP FUNCTIONS
local function ls_ensure_valid_pump(ent)
return ent and IsValid(ent) and ent:GetClass() == "rd_pump"
return ent and IsValid(ent) and ent.IsPump
end

e2function number entity:lsPumpSetResourceAmount(string res, number amount)
Expand Down

0 comments on commit 7a2fe92

Please sign in to comment.