forked from mtcontrib/throwing
1.1.2 fixed unloading
This commit is contained in:
parent
819dd11582
commit
d9da1f3ae0
@ -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},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user