Permalink
Browse files

Fixed duplicator support for old SENTs

Fixed duplicator support for old SENTs that use DTVar instead of
NetworkVar
  • Loading branch information...
1 parent 17c2da4 commit 6c31adf04e5e79180e90817d9e020af403656851 @robotboy655 robotboy655 committed Mar 1, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 garrysmod/lua/includes/extensions/entity.lua
@@ -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

1 comment on commit 6c31adf

@Bo98
Contributor
Bo98 commented on 6c31adf Mar 1, 2016

Thanks!

Please sign in to comment.