Fix stupid 'smart pickup'

master
LoneWolfHT 2019-06-05 15:12:51 -07:00
parent eaec4f8094
commit 5838afd40b
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ local function can_pickup(inv, item)
if item:find("shooter_guns:ammo") then return true end
local item2 = item
item = item:match("((.-:.+))[$s_]")
item = item:match(".-:[^%s]+"):gsub("_loaded", "")
for i in pairs(main.current_mode.mode.drops) do
if item == i:match("((.-:.+))[$s_]") and not inv:contains_item("main", item) and not
if i ~= "default" and item == i:match(".-:[^%s]+"):gsub("_loaded", "") and not inv:contains_item("main", item) and not
inv:contains_item("main", item2) then
return true
end