1.1.2 fixed unloading

This commit is contained in:
echoes91 2015-04-04 14:12:41 +02:00
parent 819dd11582
commit d9da1f3ae0

View File

@ -106,13 +106,13 @@ function throwing_register_bow (name, desc, scale, stiffness, reload_time, tough
end
local unloaded = "throwing:" .. name
throwing_shoot_arrow(itemstack, user, stiffness, is_cross)
minetest.after(0.01, throwing_unload, itemstack, user, unloaded, wear)
minetest.after(0, throwing_unload, itemstack, user, unloaded, wear)
return itemstack
end,
on_drop = function(itemstack, dropper, pointed_thing)
local wear = itemstack:get_wear()
local unloaded = "throwing:" .. name
minetest.after(0.01, throwing_unload, itemstack, dropper, unloaded, wear)
minetest.after(0, throwing_unload, itemstack, dropper, unloaded, wear)
end,
groups = {not_in_creative_inventory=1},
})