mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
Add fix for 106. Fixes #106
This commit is contained in:
1 parent
58270a4c96
commit
9884f84696
2 files changed
+21
-4
No files matched your search
@@ -123,10 +123,15 @@ public class Chisel {
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
modsSupported.add("Thaumcraft");
|
||||
modsSupported.add("AWWayOfTime");
|
||||
|
||||
/* These mods will enable no blocks in chisel. IF YOU REENABLE
|
||||
THESE BLOCKS, THE GAME WILL CRASH UPON TRYING TO RENDER MISSING
|
||||
BLOCK IN THE CREATIVE TABS! See issue #106 for more info! ~Drull
|
||||
|
||||
modsSupported.add("Twilight Forest");
|
||||
modsSupported.add("appliedenergistics2");
|
||||
modsSupported.add("Railcraft");
|
||||
modsSupported.add("AWWayOfTime");
|
||||
modsSupported.add("Railcraft");*/
|
||||
|
||||
File configFile = event.getSuggestedConfigurationFile();
|
||||
Configurations.configExists = configFile.exists();
|
||||
|
||||
@@ -36,8 +36,20 @@ public class ModTabs {
|
||||
|
||||
@Override
|
||||
public Item getTabIconItem() {
|
||||
return Item.getItemFromBlock(ModBlocks.arcane);
|
||||
}
|
||||
|
||||
if (Loader.isModLoaded("Thaumcraft")) {
|
||||
return Item.getItemFromBlock(ModBlocks.arcane);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (Loader.isModLoaded("AWWayOfTime")) {
|
||||
return Item.getItemFromBlock(ModBlocks.bloodRune);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user