diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-16 20:32:22 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-16 20:32:22 +0000 |
commit | 3eb482a8c06382776e091ded5f9c6dd40d5ed3e0 (patch) | |
tree | 915c0284d2ffaac19d39182c6bf1c7fe38f03cc2 | |
parent | 6fa21694e218ee7358f90da3fb19137d4df68c42 (diff) |
ethereal uses bonemeal mod if found instead of it's own
-rw-r--r-- | init.lua | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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
|