From 5e5f1a605a3c039c0f0968662cfc4552d60e5e8d Mon Sep 17 00:00:00 2001 From: Tim Goll Date: Fri, 3 Jan 2025 14:52:11 +0100 Subject: [PATCH] Update gamemodes/terrortown/gamemode/server/sv_entity.lua Co-authored-by: ZenBre4ker <72046466+ZenBre4ker@users.noreply.github.com> --- gamemodes/terrortown/gamemode/server/sv_entity.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gamemodes/terrortown/gamemode/server/sv_entity.lua b/gamemodes/terrortown/gamemode/server/sv_entity.lua index e1a85676d..7486bcdde 100644 --- a/gamemodes/terrortown/gamemode/server/sv_entity.lua +++ b/gamemodes/terrortown/gamemode/server/sv_entity.lua @@ -90,9 +90,7 @@ function entmeta:IsUsableEntity(requiredCaps) -- special case: TTT specific lua based use interactions -- when we're looking for specifically the lua use - if self:IsWeapon() or self.player_ragdoll then - return true - elseif self:IsScripted() and self.CanUseKey then + if self:IsWeapon() or self.player_ragdoll or (self:IsScripted() and self.CanUseKey) then return true end