Skip to content

Commit

Permalink
Fix reload action not taking ammo
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT authored and stujones11 committed May 27, 2019
1 parent 8caadba commit cfb3818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shooter/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit cfb3818

Please sign in to comment.