mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-17 11:05:02 +00:00
Add GT version checks to avoid crash with GT6
This commit is contained in:
1 parent
075caff6c2
commit
0c4239c954
2 files changed
+3
-3
No files matched your search
@@ -131,7 +131,6 @@ import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import gregtech.api.enums.Materials;
|
||||
import magicbees.item.types.CombType;
|
||||
import magicbees.item.types.DropType;
|
||||
@@ -262,7 +261,7 @@ public class BeeProductHelper {
|
||||
}
|
||||
|
||||
public static void initOreDictSProducts() {
|
||||
boolean isGTLoaded = Loader.isModLoaded("gregtech");
|
||||
boolean isGTLoaded = Config.isGTLoaded;
|
||||
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
|
||||
SILVER.addSpecialty(
|
||||
|
||||
@@ -164,7 +164,8 @@ public class Config {
|
||||
public static Configuration configuration;
|
||||
|
||||
// ---- Loaded mods -----------------------------------------
|
||||
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
|
||||
public static boolean isGTLoaded = Loader.isModLoaded("gregtech")
|
||||
&& !Loader.instance().getIndexedModList().get("gregtech").getVersion().startsWith("GT6");
|
||||
|
||||
public Config(File configFile) {
|
||||
configuration = new Configuration(configFile);
|
||||
|
||||
Reference in new issue
Block a user