From cfb3818b09cc013c8aa84c4baa1253e90d8e6384 Mon Sep 17 00:00:00 2001 From: Lone_Wolf Date: Sat, 25 May 2019 16:35:22 -0700 Subject: [PATCH] Fix reload action not taking ammo --- shooter/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shooter/api.lua b/shooter/api.lua index e520d04..133fd47 100644 --- a/shooter/api.lua +++ b/shooter/api.lua @@ -116,7 +116,7 @@ shooter.register_weapon = function(name, def) on_use = function(itemstack, user) local inv = user:get_inventory() if inv then - local stack = def.reload_item + local stack = def.spec.reload_item if inv:contains_item("main", stack) then local sound = def.spec.sounds.reload or "shooter_reload" minetest.sound_play(sound, {object=user})