Skip to content

Commit 1bf7e07

Browse files
committed
fix button tap ignore_if_hidden
if tap is too short, it triggered anyway
1 parent 511c777 commit 1bf7e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/pac3/core/client/part_pool.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ function pac.UpdateButtonEvents(ply, key, down)
693693
local button_events = ply.pac_part_cache_button_events or {}
694694
for _,part in pairs(button_events) do
695695
if part:GetProperty("ignore_if_hidden") then
696-
if part:IsHidden() then continue end
696+
if part:IsHidden() or (CurTime() - part.showtime) < 0.05 then continue end
697697
end
698698
if key ~= string.Split(part.Arguments, "@@")[1]:lower() then continue end
699699
part.pac_broadcasted_buttons_holduntil = part.pac_broadcasted_buttons_holduntil or {}

0 commit comments

Comments
 (0)