mirror of
https://github.com/MalboroDEV/PermaProps.git
synced 2025-03-04 03:13:21 -05:00
Update sv_lib.lua
This commit is contained in:
parent
fb568f0cc5
commit
00014c3ac3
@ -161,11 +161,11 @@ function PermaProps.PPEntityFromTable( data, id )
|
||||
if data.SubMat then
|
||||
|
||||
for k, v in pairs( data.SubMat ) do
|
||||
|
||||
if type(k) != "number" or type(v) == "string" then
|
||||
|
||||
if type(k) != "number" or type(v) != "string" then continue end
|
||||
|
||||
ent:SetSubMaterial( k-1, v )
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user