Skip to content

Commit

Permalink
clear error when valid part class
Browse files Browse the repository at this point in the history
  • Loading branch information
pingu7867 authored Mar 31, 2024
1 parent 5c34b12 commit 1516022
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/pac3/core/client/parts/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -4230,4 +4233,4 @@ net.Receive("pac_update_healthbars", function()
end
end

end)
end)

0 comments on commit 1516022

Please sign in to comment.