mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 05:03:03 +00:00
Correct crash when no arrow is in the inventory and the bow is drawn.
This commit is contained in:
parent
623f60ab79
commit
c4271cf13d
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ controls.register_on_release(function(player, key, time)
|
|||
end)
|
||||
|
||||
controls.register_on_hold(function(player, key, time)
|
||||
if key ~= "RMB" then
|
||||
if key ~= "RMB" or not get_arrow(player) then
|
||||
return
|
||||
end
|
||||
local name = player:get_player_name()
|
||||
|
|
Loading…
Reference in a new issue