From b6d9ab30462087d41c69ec7260e24f3838b0d019 Mon Sep 17 00:00:00 2001 From: thecraftianman <64441307+thecraftianman@users.noreply.github.com> Date: Wed, 11 Oct 2023 13:17:55 -0400 Subject: [PATCH] Removed old Workshop download Also replaced all ACF_CheckLegal calls with ACF.CheckLegal so that it can be deprecated --- lua/acf/core/acfm_globals.lua | 4 ---- lua/entities/acf_computer/init.lua | 2 +- lua/entities/acf_rack/init.lua | 2 +- lua/entities/acf_receiver/init.lua | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lua/acf/core/acfm_globals.lua b/lua/acf/core/acfm_globals.lua index 859efdaf..bc5cb436 100644 --- a/lua/acf/core/acfm_globals.lua +++ b/lua/acf/core/acfm_globals.lua @@ -14,10 +14,6 @@ game.AddParticles("particles/flares_fx.pcf") PrecacheParticleSystem("ACFM_Flare") -if SERVER then - resource.AddWorkshop("403587498") -end - do -- Update checker hook.Add("ACF_OnLoadAddon", "ACF Missiles Checker", function() ACF.AddRepository("TwistedTail", "ACF-3-Missiles", "lua/acf/core/acfm_globals.lua") diff --git a/lua/entities/acf_computer/init.lua b/lua/entities/acf_computer/init.lua index af162913..b8e892bf 100644 --- a/lua/entities/acf_computer/init.lua +++ b/lua/entities/acf_computer/init.lua @@ -67,7 +67,7 @@ end) -- Local Funcs and Vars --===============================================================================================-- -local CheckLegal = ACF_CheckLegal +local CheckLegal = ACF.CheckLegal local UnlinkSound = "physics/metal/metal_box_impact_bullet%s.wav" local MaxDistance = ACF.LinkDistance * ACF.LinkDistance local HookRun = hook.Run diff --git a/lua/entities/acf_rack/init.lua b/lua/entities/acf_rack/init.lua index d5f300a8..63dbe355 100644 --- a/lua/entities/acf_rack/init.lua +++ b/lua/entities/acf_rack/init.lua @@ -29,7 +29,7 @@ end do -- Spawning and Updating -------------------- local UnlinkSound = "physics/metal/metal_box_impact_bullet%s.wav" local MaxDistance = ACF.LinkDistance * ACF.LinkDistance - local CheckLegal = ACF_CheckLegal + local CheckLegal = ACF.CheckLegal local WireIO = Utilities.WireIO local Entities = Classes.Entities local Racks = Classes.Racks diff --git a/lua/entities/acf_receiver/init.lua b/lua/entities/acf_receiver/init.lua index 058488fb..53b89b12 100644 --- a/lua/entities/acf_receiver/init.lua +++ b/lua/entities/acf_receiver/init.lua @@ -11,7 +11,7 @@ local ACF = ACF --===============================================================================================-- local Damage = ACF.Damage -local CheckLegal = ACF_CheckLegal +local CheckLegal = ACF.CheckLegal local TimerExists = timer.Exists local TimerCreate = timer.Create local TimerRemove = timer.Remove