update lucky blocks to handle different settings

This commit is contained in:
FaceDeer 2017-01-22 16:21:33 -07:00
parent 033d697f88
commit e9d8265596

@ -502,11 +502,17 @@ end
-- add lucky blocks -- add lucky blocks
if minetest.get_modpath("lucky_block") then if minetest.get_modpath("lucky_block") then
if single_craftable_item then
lucky_block:add_blocks({
{"dro", {"hopper:hopper_item"}, 3},
{"nod", "default:lava_source", 1},
})
else
lucky_block:add_blocks({ lucky_block:add_blocks({
{"dro", {"hopper:hopper"}, 3}, {"dro", {"hopper:hopper"}, 3},
{"nod", "default:lava_source", 1}, {"nod", "default:lava_source", 1},
}) })
end end
end
print ("[MOD] Hopper loaded") print ("[MOD] Hopper loaded")