From 73c4597d255c62d1f40ab2b04d71a207c7715b6a Mon Sep 17 00:00:00 2001
From: h-v-smacker <hans-von-smacker+github@gmail.com>
Date: Fri, 1 Jun 2018 23:19:35 +0300
Subject: enable aspirin when hbhunger is used

---
 extranodes/aspirin.lua                          | 2 +-
 technic/machines/register/extractor_recipes.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extranodes/aspirin.lua b/extranodes/aspirin.lua
index a9ddad8..126f726 100644
--- a/extranodes/aspirin.lua
+++ b/extranodes/aspirin.lua
@@ -6,7 +6,7 @@
 
 local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
 
-if minetest.get_modpath("hunger") and minetest.get_modpath("ethereal") then
+if (minetest.get_modpath("hunger") or minetest.get_modpath("hbhunger")) and minetest.get_modpath("ethereal") then
 
 	minetest.register_craftitem(":technic:aspirin_pill", {
 		description = S("Aspirin pill"),
diff --git a/technic/machines/register/extractor_recipes.lua b/technic/machines/register/extractor_recipes.lua
index 722e6b7..15da6b4 100644
--- a/technic/machines/register/extractor_recipes.lua
+++ b/technic/machines/register/extractor_recipes.lua
@@ -29,7 +29,7 @@ if minetest.get_modpath("dye") then
 		{"bushes:blueberry",                  unifieddyes and "unifieddyes:magenta_s50 4" or "dye:magenta 4"},
 	}
 
-	if minetest.get_modpath("hunger") and minetest.get_modpath("ethereal") then
+	if (minetest.get_modpath("hunger") or minetest.get_modpath("hbhunger"))  and minetest.get_modpath("ethereal") then
 		table.insert(dye_recipes, {"ethereal:willow_twig 12", "technic:aspirin_pill"})
 	end
 	
-- 
cgit v1.2.3