Fix a typo causing a crash

Fixes #24
This commit is contained in:
upsilon 2020-04-27 10:49:00 +02:00
parent 49f3f36bdf
commit 2d2368529f
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ local function shoot_arrow(def, toolranks_data, player, bow_index, throw_itself,
if not minetest.settings:get_bool("creative_mode") then
if new_stack then
inventory:set_stack("main", arrrow_index, new_stack)
inventory:set_stack("main", arrow_index, new_stack)
else
local stack = inventory:get_stack("main", arrow_index)
stack:take_item()