From 9b885e76b6706b8d599525e7238ea844d4cf4b32 Mon Sep 17 00:00:00 2001 From: Aspect <41125780+Aspect12@users.noreply.github.com> Date: Fri, 31 Jul 2020 10:18:49 +0300 Subject: [PATCH] Replace self.currentAreaDisplay with set variable --- .../clockwork/plugins/areadisplays/plugin/cl_hooks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/garrysmod/gamemodes/clockwork/plugins/areadisplays/plugin/cl_hooks.lua b/upload/garrysmod/gamemodes/clockwork/plugins/areadisplays/plugin/cl_hooks.lua index f9da8c61..85ce37f7 100644 --- a/upload/garrysmod/gamemodes/clockwork/plugins/areadisplays/plugin/cl_hooks.lua +++ b/upload/garrysmod/gamemodes/clockwork/plugins/areadisplays/plugin/cl_hooks.lua @@ -64,7 +64,7 @@ function cwAreaDisplays:Tick() for k, v in pairs(self.storedList) do if (Clockwork.entity:IsInBox(Clockwork.Client, v.minimum, v.maximum)) then - if (self.currentAreaDisplay != v.name) then + if (lastAreaDisplay != v.name) then local bCalledHooks = self:HandleAreaTable(v, k); if (!bCalledHooks) then @@ -83,4 +83,4 @@ function cwAreaDisplays:Tick() if (bDidLeave) then Clockwork.plugin:Call("PlayerExitedArea", bDidLeave); end; -end; \ No newline at end of file +end;