Fix some global variable fuckups

This commit is contained in:
Wuzzy 2017-01-16 13:24:38 +01:00
parent 6388eb98f1
commit dce02a9979
3 changed files with 5 additions and 3 deletions

View file

@ -37,7 +37,7 @@ minetest.register_tool("throwing:bow", {
return itemstack
end,
on_use = function(itemstack, user, pointed_thing)
wear = itemstack:get_wear()
local wear = itemstack:get_wear()
itemstack:add_wear(wear)
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then