diff --git a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua index f546a08313..1a65f34ebd 100644 --- a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua +++ b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua @@ -229,11 +229,11 @@ end -- Other -------------------------------------------------------- do - local GetVar = FindMetaTable( "Entity" ).GetVar + local GetTable = FindMetaTable( "Entity" ).GetTable function EGP:ValidEGP( Ent ) if not IsValid( Ent ) then return false end - return GetVar( Ent, "IsEGP", false ) + return GetTable( Ent ).IsEGP == true end end