Skip to content

Commit

Permalink
Fixed duplicator support for old SENTs
Browse files Browse the repository at this point in the history
Fixed duplicator support for old SENTs that use DTVar instead of
NetworkVar
  • Loading branch information
robotboy655 committed Mar 1, 2016
1 parent 17c2da4 commit 6c31adf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion garrysmod/lua/includes/extensions/entity.lua
Expand Up @@ -393,7 +393,11 @@ function meta:InstallDataTable()
if ( tab[ k ] == nil ) then continue end
-- Set it.
ent[ "Set" .. k ]( ent, tab[ k ] )
if ( ent[ "Set" .. k ] ) then
ent[ "Set" .. k ]( ent, tab[ k ] )
else
v.SetFunc( ent, v.index, tab[k] )
end
end
Expand Down

1 comment on commit 6c31adf

@Bo98
Copy link
Contributor

@Bo98 Bo98 commented on 6c31adf Mar 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.