Skip to content

Commit 028db45

Browse files
authored
add wiremod hook check
1 parent af70491 commit 028db45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/custom_chat/client/main.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ local function CustomChat_OnPlayerBindPress( _, bind, pressed )
500500
-- Don't open if playable piano is blocking input
501501
if IsValid( LocalPlayer().Instrument ) then return end
502502

503-
-- Don't open if Starfall is blocking input
503+
-- Don't open if Wiremod or Starfall is blocking input
504504
local existingBindHooks = hook.GetTable()["PlayerBindPress"]
505+
if existingBindHooks["wire_keyboard_blockinput"] then return end
505506
if existingBindHooks["sf_keyboard_blockinput"] then return end
506507

507508
-- Don't open if anything else wants to block input

0 commit comments

Comments
 (0)