Fix guns disappearing when empty

This commit is contained in:
stujones11 2019-04-02 15:24:32 +01:00
parent 8e18c0b117
commit 2a5674e67d

View file

@ -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,
}