From da50bf48eadeeb36139c8928152e8a057353cbcb Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Wed, 29 Jun 2022 04:23:30 -0400 Subject: [PATCH] BetterKill: allow killing items --- BetterKill/main.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BetterKill/main.lua b/BetterKill/main.lua index 3064e1d..cd847ef 100644 --- a/BetterKill/main.lua +++ b/BetterKill/main.lua @@ -78,8 +78,11 @@ function OnCommandIssued(args, player) entity:TakeDamage(17, nil, 9999999, 9999999, 0) i = i + 1 end - else - -- player:SendMessage("Apologies, but BetterKill does not currently support non-mobs!") + elseif entity:IsPickup() then + if (testMTStr == "mtItem") then + entity:SetLifetime(0) + i = i + 1 + end end end