mirror of
https://github.com/ZNixian/equivalent_exchange.git
synced 2024-08-19 20:24:09 +02:00
Add mod load log and buildtest compatibility
This commit is contained in:
parent
28b4ea0a70
commit
4b3a94274b
@ -1 +1,2 @@
|
|||||||
default
|
default
|
||||||
|
buildtest?
|
12
init.lua
12
init.lua
@ -1,5 +1,15 @@
|
|||||||
dofile(minetest.get_modpath("equivalent_exchange").."/emcs.lua")
|
dofile(minetest.get_modpath("equivalent_exchange").."/emcs.lua")
|
||||||
|
|
||||||
|
if minetest.get_modpath("buildtest")~=nil then
|
||||||
|
buildtest.canPumpInto["equivalent_exchange:condenser"] = {
|
||||||
|
"from",
|
||||||
|
on_send = function(pos)
|
||||||
|
equivalent_exchange.convert(pos)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
buildtest.pumps.pulls["equivalent_exchange:condenser"] = {"from"}
|
||||||
|
end
|
||||||
|
|
||||||
equivalent_exchange = {
|
equivalent_exchange = {
|
||||||
convert = function(pos)
|
convert = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
@ -91,3 +101,5 @@ minetest.register_node("equivalent_exchange:condenser", {
|
|||||||
end,
|
end,
|
||||||
emc = 500
|
emc = 500
|
||||||
})
|
})
|
||||||
|
|
||||||
|
print("[equivalent_exchange] Mod loaded!")
|
Loading…
Reference in New Issue
Block a user