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
6537af9b68
commit
8439b573b9
@ -50,7 +50,7 @@ function PermaProps.PPGetEntTable( ent )
|
||||
if ( ent:GetSubMaterial( k )) then
|
||||
|
||||
content.SubMat = content.SubMat or {}
|
||||
content.SubMat[ k ] = ent:GetSubMaterial( k )
|
||||
content.SubMat[ k ] = ent:GetSubMaterial( k-1 )
|
||||
|
||||
end
|
||||
|
||||
@ -162,9 +162,9 @@ function PermaProps.PPEntityFromTable( data, id )
|
||||
|
||||
for k, v in pairs( data.SubMat ) do
|
||||
|
||||
if type(k) != "number" or type(v) == "string" then continue end
|
||||
if type(k) != "number" or type(v) != "string" then continue end
|
||||
|
||||
ent:SetSubMaterial( k, v )
|
||||
ent:SetSubMaterial( k-1, v )
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user