summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index e524b87..b7b52ce 100644
--- a/init.lua
+++ b/init.lua
@@ -1,6 +1,6 @@
--[[
- Minetest Ethereal Mod (12th January 2017)
+ Minetest Ethereal Mod (16th January 2017)
Created by ChinChow
@@ -74,11 +74,18 @@ dofile(path .. "/fences.lua")
dofile(path .. "/gates.lua")
dofile(path .. "/mapgen.lua")
dofile(path .. "/food.lua")
-dofile(path .. "/bonemeal.lua")
dofile(path .. "/compatibility.lua")
dofile(path .. "/stairs.lua")
dofile(path .. "/lucky_block.lua")
+-- Use bonemeal mod instead of ethereal's own if found
+if minetest.get_modpath("bonemeal") then
+ minetest.register_alias("ethereal:bone", "bonemeal:bone")
+ minetest.register_alias("ethereal:bonemeal", "bonemeal:bonemeal")
+else
+ dofile(path .. "/bonemeal.lua")
+end
+
if minetest.get_modpath("xanadu") then
dofile(path .. "/plantpack.lua")
end