From 34ef91721edadd14a0d5e074c979dbcba32ff8aa Mon Sep 17 00:00:00 2001 From: Brandon Sturgeon Date: Wed, 3 Jan 2024 17:55:16 -0800 Subject: [PATCH] Use Entity.IsValid instead of _G.IsValid --- lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua index 1a65f34ebd..6a8fc55dcd 100644 --- a/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua +++ b/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua @@ -229,7 +229,9 @@ end -- Other -------------------------------------------------------- do - local GetTable = FindMetaTable( "Entity" ).GetTable + local EntMeta = FindMetaTable( "Entity" ) + local IsValid = EntMeta.IsValid + local GetTable = EntMeta.GetTable function EGP:ValidEGP( Ent ) if not IsValid( Ent ) then return false end