mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Don't register manual book data if dreamcraft is loaded.
This commit is contained in:
1 parent
6569155a52
commit
4428831149
1 file changed
+10
-3
@@ -16,6 +16,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import mantle.client.SmallFontRenderer;
|
||||
import mantle.lib.client.MantleClientRegistry;
|
||||
import tconstruct.TConstruct;
|
||||
@@ -57,6 +58,15 @@ public class TProxyClient extends TProxyCommon {
|
||||
public static ManualInfo manualData;
|
||||
|
||||
public void readManuals() {
|
||||
initManualIcons();
|
||||
initManualRecipes();
|
||||
initManualPages();
|
||||
if (!Loader.isModLoaded("dreamcraft")) {
|
||||
readTinkersConstructManuals();
|
||||
}
|
||||
}
|
||||
|
||||
private void readTinkersConstructManuals() {
|
||||
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
|
||||
String CurrentLanguage = Minecraft.getMinecraft().getLanguageManager().getCurrentLanguage().getLanguageCode();
|
||||
|
||||
@@ -73,9 +83,6 @@ public class TProxyClient extends TProxyCommon {
|
||||
weaponry = weaponry_cl != null ? weaponry_cl
|
||||
: readManual("/assets/tinker/manuals/en_US/weaponry.xml", dbFactory);
|
||||
|
||||
initManualIcons();
|
||||
initManualRecipes();
|
||||
initManualPages();
|
||||
manualData = new ManualInfo();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user