mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Allow to use bow w/o arrow in Creative Mode
This commit is contained in:
parent
af759d61a3
commit
0e23d1ef89
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ local powerup_function = function(nextbow)
|
|||
end
|
||||
end
|
||||
|
||||
if get_arrow(placer) ~= nil then
|
||||
-- Check for arrow or Creative Mode
|
||||
if minetest.setting_getbool("creative_mode") or get_arrow(placer) ~= nil then
|
||||
local wear = itemstack:get_wear()
|
||||
itemstack:replace(nextbow)
|
||||
itemstack:set_wear(wear)
|
||||
|
|
Loading…
Reference in a new issue