forked from VoxeLibre/VoxeLibre
Allow to use bow w/o arrow in Creative Mode
This commit is contained in:
parent
af759d61a3
commit
0e23d1ef89
|
@ -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 New Issue