From 151602213df133e61347a0eb14eb9b8ab4ae5d59 Mon Sep 17 00:00:00 2001 From: pingu7867 Date: Sun, 31 Mar 2024 16:54:32 -0400 Subject: [PATCH] clear error when valid part class --- lua/pac3/core/client/parts/event.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/pac3/core/client/parts/event.lua b/lua/pac3/core/client/parts/event.lua index 986a08105..79945b4bf 100644 --- a/lua/pac3/core/client/parts/event.lua +++ b/lua/pac3/core/client/parts/event.lua @@ -2166,6 +2166,7 @@ PART.OldEvents = { return true end end + self:SetError() else self:SetError("You set a UID that's not a damage zone!") end @@ -2213,6 +2214,7 @@ PART.OldEvents = { return true end end + self:SetError() else self:SetError("You set a UID that's not a damage zone!") end @@ -2263,6 +2265,7 @@ PART.OldEvents = { if part.grabbing then return IsValid(part.target_ent) end + self:SetError() else self:SetError("You set a UID that's not a lock part!") end @@ -4230,4 +4233,4 @@ net.Receive("pac_update_healthbars", function() end end -end) \ No newline at end of file +end)