From 8ed9ad5ab2af2aca2538158fa54d711be0fb5d9b Mon Sep 17 00:00:00 2001 From: Fesiug Date: Tue, 14 Nov 2023 01:30:58 -0500 Subject: [PATCH] Checks for my dumbass --- gamemodes/benny/entities/weapons/benny/sh_inv.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gamemodes/benny/entities/weapons/benny/sh_inv.lua b/gamemodes/benny/entities/weapons/benny/sh_inv.lua index 351b3d9..a4a8a21 100644 --- a/gamemodes/benny/entities/weapons/benny/sh_inv.lua +++ b/gamemodes/benny/entities/weapons/benny/sh_inv.lua @@ -45,6 +45,8 @@ function SWEP:D_SetClip( hand, value ) end function SWEP:BDeploy( hand, id ) + assert( isbool(hand), "You forgot the hand." ) + assert( isstring(id), "You forgot the ID." ) if self:D_GetID( hand ) == id then return -- PROTO: If you're in the middle of holstering, cancel it elseif self:D_GetID( hand ) != "" then