From a166dafc7f5a38482f1cac77c0dea1940ae3482e Mon Sep 17 00:00:00 2001 From: Flenix Date: Fri, 7 Feb 2014 19:27:00 +0000 Subject: [PATCH] Add FlenixCities Food support to Jerky Very minor tweak. Simply changed it so that if FlenixCitiesFood is found, it'll do exactly the same thing it does if Hunger Overhaul is found. --- src/main/java/tconstruct/common/TContent.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/tconstruct/common/TContent.java b/src/main/java/tconstruct/common/TContent.java index 3df715d8..fe8022e7 100644 --- a/src/main/java/tconstruct/common/TContent.java +++ b/src/main/java/tconstruct/common/TContent.java @@ -648,8 +648,13 @@ public class TContent implements IFuelHandler GameRegistry.registerItem(TRepo.diamondApple, "diamondApple"); GameRegistry.registerItem(TRepo.strangeFood, "strangeFood"); GameRegistry.registerItem(TRepo.oreBerries, "oreBerries"); - - TRepo.jerky = new Jerky(Loader.isModLoaded("HungerOverhaul")).setUnlocalizedName("tconstruct.jerky"); + + boolean foodOverhaul; + if (Loader.isModLoaded("HungerOverhaul") || Loader.isModLoaded("fc_food")) { + foodOverhaul = true; + } + + TRepo.jerky = new Jerky(foodOverhaul).setUnlocalizedName("tconstruct.jerky"); GameRegistry.registerItem(TRepo.jerky, "jerky"); //Wearables