mirror of
https://github.com/ZNixian/equivalent_exchange.git
synced 2024-11-22 14:53:44 +01:00
Add mod load log and buildtest compatibility
This commit is contained in:
parent
28b4ea0a70
commit
4b3a94274b
@ -1 +1,2 @@
|
||||
default
|
||||
buildtest?
|
12
init.lua
12
init.lua
@ -1,5 +1,15 @@
|
||||
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 = {
|
||||
convert = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
@ -91,3 +101,5 @@ minetest.register_node("equivalent_exchange:condenser", {
|
||||
end,
|
||||
emc = 500
|
||||
})
|
||||
|
||||
print("[equivalent_exchange] Mod loaded!")
|
Loading…
Reference in New Issue
Block a user