From 2a5674e67d68d122b28afa4b7e2b2e6d244897e9 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Tue, 2 Apr 2019 15:24:32 +0100 Subject: [PATCH] Fix guns disappearing when empty --- shooter/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/shooter/api.lua b/shooter/api.lua index 4998618..c8e3aee 100644 --- a/shooter/api.lua +++ b/shooter/api.lua @@ -76,6 +76,7 @@ shooter.register_weapon = function(name, def) def.spec.wear = math.ceil(65535 / def.spec.rounds) def.spec.unloaded_item = name def.unloaded_item = def.unloaded_item or { + name = name, description = def.description.." (unloaded)", inventory_image = def.inventory_image, }