From 9a50a5880f3d263cd351f4786c222ac7f0b78517 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 22 Apr 2016 14:03:19 -0400 Subject: Started work on createing furnace generic --- gamemode/server/entity_functions.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gamemode/server') diff --git a/gamemode/server/entity_functions.lua b/gamemode/server/entity_functions.lua index 14b8df9..8f18383 100644 --- a/gamemode/server/entity_functions.lua +++ b/gamemode/server/entity_functions.lua @@ -85,6 +85,8 @@ end GMS.FadingOutProps = {} GMS.FadingInProps = {} +print("GMS_FadingInProps initalized") + function EntityMeta:Fadeout( speed ) if ( !IsValid( self ) ) then return end local speed = speed or 1 @@ -114,6 +116,7 @@ function EntityMeta:Fadein( speed ) end hook.Add( "Think", "gms_FadePropsThink", function() + if(GMS.FadingInProps == nil) then return end for k, ent in pairs( GMS.FadingInProps ) do if ( !ent or ent == NULL ) then table.remove( GMS.FadingInProps, k ) -- cgit v1.2.3-70-g09d2