summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-01-16 20:32:22 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-01-16 20:32:22 +0000
commit3eb482a8c06382776e091ded5f9c6dd40d5ed3e0 (patch)
tree915c0284d2ffaac19d39182c6bf1c7fe38f03cc2 /init.lua
parent6fa21694e218ee7358f90da3fb19137d4df68c42 (diff)
ethereal uses bonemeal mod if found instead of it's own
Diffstat (limited to 'init.lua')
-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