diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-09 12:21:22 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-09 12:21:22 +1000 |
commit | 5752ae213733278e7e0cd0691c8294a9721eaf75 (patch) | |
tree | 51c3faa2e140f174bbc1c2292cfe695915d00e62 /src/Java/gtPlusPlus/core/common | |
parent | 41c0d8e1082296a4c890c3614d1e4bd4963cfca5 (diff) | |
download | GT5-Unofficial-5752ae213733278e7e0cd0691c8294a9721eaf75.tar.gz GT5-Unofficial-5752ae213733278e7e0cd0691c8294a9721eaf75.tar.bz2 GT5-Unofficial-5752ae213733278e7e0cd0691c8294a9721eaf75.zip |
$ Fixed Baubles support. - Should fix #23
Diffstat (limited to 'src/Java/gtPlusPlus/core/common')
-rw-r--r-- | src/Java/gtPlusPlus/core/common/compat/COMPAT_Baubles.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/common/compat/COMPAT_Baubles.java b/src/Java/gtPlusPlus/core/common/compat/COMPAT_Baubles.java new file mode 100644 index 0000000000..634fbe47d2 --- /dev/null +++ b/src/Java/gtPlusPlus/core/common/compat/COMPAT_Baubles.java @@ -0,0 +1,31 @@ +package gtPlusPlus.core.common.compat; + +import gtPlusPlus.core.item.ModItems; +import gtPlusPlus.core.item.general.ItemCloakingDevice; +import gtPlusPlus.core.item.general.ItemHealingDevice; +import gtPlusPlus.core.lib.LoadedMods; +import gtPlusPlus.core.util.Utils; + +public class COMPAT_Baubles { + + public static void run(){ + if (LoadedMods.Baubles){ + baublesLoaded(); + } + else { + baublesNotLoaded(); + } + } + + public static void baublesLoaded(){ + Utils.LOG_INFO("Baubles Found - Loading Wearables."); + ModItems.itemPersonalCloakingDevice = new ItemCloakingDevice(0); + //itemPersonalCloakingDeviceCharged = new ItemCloakingDevice(0).set; + ModItems.itemPersonalHealingDevice = new ItemHealingDevice(); + } + + public static void baublesNotLoaded(){ + Utils.LOG_INFO("Baubles Not Found - Skipping Resources."); + } + +} |