mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-22 21:32:29 +01:00
update lucky blocks to handle different settings
This commit is contained in:
parent
033d697f88
commit
e9d8265596
8
init.lua
8
init.lua
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user