This commit is contained in:
upsilon 2017-07-08 23:01:58 +02:00
parent b39b1b21c3
commit 164bf6b5fc
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -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