From 3eb482a8c06382776e091ded5f9c6dd40d5ed3e0 Mon Sep 17 00:00:00 2001
From: TenPlus1 <kinsellaja@yahoo.com>
Date: Mon, 16 Jan 2017 20:32:22 +0000
Subject: [PATCH] ethereal uses bonemeal mod if found instead of it's own

---
 init.lua | 11 +++++++++--
 1 file 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
-- 
GitLab