Skip to content

Commit

Permalink
Merge pull request #12 from OgelGames/master
Browse files Browse the repository at this point in the history
Fix hopper compatibility
  • Loading branch information
Lokrates committed Dec 28, 2020
2 parents 37cec9a + 67155f6 commit 65f6bbf
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions refinery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
local S = minetest.get_translator("biofuel")

-- hopper compat
hopper:add_container({
{"top", "biofuel:refinery", "dst"},
{"bottom", "biofuel:refinery", "src"},
{"side", "biofuel:refinery", "src"},
{"top", "biofuel:refinery_active", "dst"},
{"bottom", "biofuel:refinery_active", "src"},
{"side", "biofuel:refinery_active", "src"},
})
if minetest.get_modpath("hopper") then
hopper:add_container({
{"top", "biofuel:refinery", "dst"},
{"bottom", "biofuel:refinery", "src"},
{"side", "biofuel:refinery", "src"},
{"top", "biofuel:refinery_active", "dst"},
{"bottom", "biofuel:refinery_active", "src"},
{"side", "biofuel:refinery_active", "src"},
})
end


-- pipeworks compat
Expand Down

0 comments on commit 65f6bbf

Please sign in to comment.