mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-22 13:22:28 +01:00
update lucky blocks to handle different settings
This commit is contained in:
parent
033d697f88
commit
e9d8265596
16
init.lua
16
init.lua
@ -502,11 +502,17 @@ end
|
||||
|
||||
-- add lucky blocks
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"hopper:hopper"}, 3},
|
||||
{"nod", "default:lava_source", 1},
|
||||
})
|
||||
if single_craftable_item then
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"hopper:hopper_item"}, 3},
|
||||
{"nod", "default:lava_source", 1},
|
||||
})
|
||||
else
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"hopper:hopper"}, 3},
|
||||
{"nod", "default:lava_source", 1},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
print ("[MOD] Hopper loaded")
|
||||
|
Loading…
Reference in New Issue
Block a user