From d79b91caafbae82363b130d6de35b011cb126108 Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Tue, 2 Jan 2024 22:14:55 -0800 Subject: [PATCH] Use GetTableinstead of GetVar --- lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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