mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-01-09 09:40:26 +01:00
Fix #11
This commit is contained in:
parent
b39b1b21c3
commit
164bf6b5fc
2
init.lua
2
init.lua
@ -348,7 +348,7 @@ function throwing.register_bow(name, def)
|
||||
minetest.sound_play(def.sound, {to_player=user:get_player_name()})
|
||||
end
|
||||
|
||||
meta:set_int("delay", os.time() + def.delay or 0)
|
||||
meta:set_int("delay", os.time() + (def.delay or 0))
|
||||
minetest.after(def.delay or 0, function()
|
||||
-- Re-check that the arrow can be thrown. Overwrite the new_stack
|
||||
local old_new_stack = new_stack
|
||||
|
Loading…
Reference in New Issue
Block a user