Skip to content

Commit efcd6eb

Browse files
authored
Remove default return in WorldPickerMouseDisable (#2285)
This hook always returning something can prevent other VGUIMousePressAllowed hooks from running, such as a base GAMEMODE hook
1 parent cb206c7 commit efcd6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

garrysmod/lua/includes/extensions/util/worldpicker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ util.worldpicker = {
3939

4040
hook.Add( "VGUIMousePressAllowed", "WorldPickerMouseDisable", function( code )
4141

42-
if ( !bDoing ) then return false end
42+
if ( !bDoing ) then return end
4343

4444
local dir = gui.ScreenToVector( input.GetCursorPos() )
4545
local tr = util.TraceLine( {

0 commit comments

Comments
 (0)