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
|
end
|
||||||
local unloaded = "throwing:" .. name
|
local unloaded = "throwing:" .. name
|
||||||
throwing_shoot_arrow(itemstack, user, stiffness, is_cross)
|
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
|
return itemstack
|
||||||
end,
|
end,
|
||||||
on_drop = function(itemstack, dropper, pointed_thing)
|
on_drop = function(itemstack, dropper, pointed_thing)
|
||||||
local wear = itemstack:get_wear()
|
local wear = itemstack:get_wear()
|
||||||
local unloaded = "throwing:" .. name
|
local unloaded = "throwing:" .. name
|
||||||
minetest.after(0.01, throwing_unload, itemstack, dropper, unloaded, wear)
|
minetest.after(0, throwing_unload, itemstack, dropper, unloaded, wear)
|
||||||
end,
|
end,
|
||||||
groups = {not_in_creative_inventory=1},
|
groups = {not_in_creative_inventory=1},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user