diff --git a/lua/entities/gmod_wire_expression2/core/entity.lua b/lua/entities/gmod_wire_expression2/core/entity.lua index 35ab046e93..9f3ba9676f 100644 --- a/lua/entities/gmod_wire_expression2/core/entity.lua +++ b/lua/entities/gmod_wire_expression2/core/entity.lua @@ -200,7 +200,7 @@ end --- Specific to env_sun because Source is dum. Use this to trace towards the sun or something. e2function vector sunDirection() - if not isValid(sun) then return { 0, 0, 0 } end + if not IsValid(sun) then return { 0, 0, 0 } end return sun:GetKeyValues().sun_dir end