From 8f938f83efe0540498d9a729517c73be4ab691ea Mon Sep 17 00:00:00 2001 From: AlmTech Date: Sun, 15 Sep 2019 18:58:50 +0200 Subject: [PATCH] Bug fix --- gamemode/cl_init.lua | 2 +- gamemode/engine/core/sh_player_binds.lua | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gamemode/cl_init.lua b/gamemode/cl_init.lua index a198c3f..838dbda 100644 --- a/gamemode/cl_init.lua +++ b/gamemode/cl_init.lua @@ -43,7 +43,7 @@ if CLIENT then local fol = GM.FolderName .. "/gamemode/engine/derma/" local clFiles = file.Find( fol .. "/cl_*.lua", "LUA" ) for _, file in pairs( clFiles ) do - include( fol .. "/" .. file ) + include( fol .. file ) end end diff --git a/gamemode/engine/core/sh_player_binds.lua b/gamemode/engine/core/sh_player_binds.lua index a2a138c..354bff6 100644 --- a/gamemode/engine/core/sh_player_binds.lua +++ b/gamemode/engine/core/sh_player_binds.lua @@ -10,12 +10,13 @@ if SERVER then local keyfuncs = { [IN_USE] = function( pl ) - pl:ChatPrint( "Use bind test" ) + Quantum.Debug( tostring( pl ) .. " pressed IN_USE" ) end } function GM:KeyRelease( ply, key ) - if( keyfuncs[key] ) then keyfuncs[key]( pl ) end + if( keyfuncs[key] ) then keyfuncs[key]( ply ) end end - +else + -- end \ No newline at end of file