Skip to content

Commit

Permalink
Fix a typo causing a crash
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
paly2 committed Apr 27, 2020
1 parent 49f3f36 commit 2d23685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2d23685

Please sign in to comment.