Skip to content

Commit

Permalink
Use IMaterial if the value is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
wrefgtzweve committed Oct 13, 2024
1 parent c7a94de commit b746a8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/entities/gmod_wire_egp/lib/egplib/objects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ function baseObj:EditObject(args)
end
for k, v in pairs(args) do
if self[k] ~= nil and self[k] ~= v then
self[k] = v
if CLIENT and k == "material" and isstring(v) then
self[k] = Material(v)
else
self[k] = v
end
ret = true
end
end
Expand Down

0 comments on commit b746a8f

Please sign in to comment.