Update sv_lib.lua

This commit is contained in:
Etos7 2019-02-06 18:20:37 +01:00 committed by GitHub
parent 6537af9b68
commit 8439b573b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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