Allow to use bow w/o arrow in Creative Mode

This commit is contained in:
Wuzzy 2017-05-26 23:27:11 +02:00
parent af759d61a3
commit 0e23d1ef89

View file

@ -83,7 +83,8 @@ local powerup_function = function(nextbow)
end end
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() local wear = itemstack:get_wear()
itemstack:replace(nextbow) itemstack:replace(nextbow)
itemstack:set_wear(wear) itemstack:set_wear(wear)