mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 20:32:22 +01:00
update hopper API to tenplus1's standard
This commit is contained in:
parent
12f4a03ef2
commit
a9456774e1
@ -261,18 +261,18 @@ minetest.register_node("digtron:combined_storage", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Hopper compatibility
|
-- Hopper compatibility
|
||||||
if minetest.get_modpath("hopper") and hopper ~= nil and hopper.add_source ~= nil and hopper.add_destination ~= nil then
|
if minetest.get_modpath("hopper") and hopper ~= nil and hopper.add_container ~= nil then
|
||||||
hopper.add_source("hopper:hopper", "digtron:inventory", "main")
|
hopper:add_container({
|
||||||
hopper.add_source("hopper:hopper", "digtron:fuelstore", "fuel")
|
{"top", "digtron:inventory", "main"},
|
||||||
hopper.add_source("hopper:hopper", "digtron:combined_storage", "main")
|
{"bottom", "digtron:inventory", "main"},
|
||||||
hopper.add_destination("hopper:hopper", "digtron:inventory", "main")
|
{"side", "digtron:inventory", "main"},
|
||||||
hopper.add_destination("hopper:hopper", "digtron:fuelstore", "fuel")
|
|
||||||
hopper.add_destination("hopper:hopper", "digtron:combined_storage", "main")
|
|
||||||
|
|
||||||
hopper.add_source("hopper:hopper_side", "digtron:inventory", "main")
|
{"top", "digtron:fuelstore", "fuel"},
|
||||||
hopper.add_source("hopper:hopper_side", "digtron:fuelstore", "fuel")
|
{"bottom", "digtron:fuelstore", "fuel"},
|
||||||
hopper.add_source("hopper:hopper_side", "digtron:combined_storage", "main")
|
{"side", "digtron:fuelstore", "fuel"},
|
||||||
hopper.add_destination("hopper:hopper_side", "digtron:inventory", "main")
|
|
||||||
hopper.add_destination("hopper:hopper_side", "digtron:fuelstore", "fuel")
|
{"top", "digtron:combined_storage", "main"},
|
||||||
hopper.add_destination("hopper:hopper_side", "digtron:combined_storage", "fuel")
|
{"bottom", "digtron:combined_storage", "main"},
|
||||||
|
{"side", "digtron:combined_storage", "fuel"},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user