1
0
Fork 0

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
1 changed files with 2 additions and 1 deletions

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)