Update sv_lib.lua

This commit is contained in:
Etos7 2019-02-06 16:44:56 +01:00 committed by GitHub
parent fb568f0cc5
commit 00014c3ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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