diff options
author | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-10-29 02:29:11 +0200 |
---|---|---|
committer | Johann Bernhardt <johann.bernhardt@tum.de> | 2021-10-29 02:29:11 +0200 |
commit | 240a5e4b2b1aafc0c3fe3948455ab5d9a9fdfdd6 (patch) | |
tree | 70021ae81b697a236c7711fd6c1939348e23d2ae /src/main/java | |
parent | 3913b3c676be4823711f33ee09634dbfd3392474 (diff) | |
download | GT5-Unofficial-240a5e4b2b1aafc0c3fe3948455ab5d9a9fdfdd6.tar.gz GT5-Unofficial-240a5e4b2b1aafc0c3fe3948455ab5d9a9fdfdd6.tar.bz2 GT5-Unofficial-240a5e4b2b1aafc0c3fe3948455ab5d9a9fdfdd6.zip |
Synchronize ore vein names to visual prospecting if installed
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5VeinStat.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5VeinStat.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5VeinStat.java index 2c9f9d3298..c288aa72ca 100644 --- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5VeinStat.java +++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5VeinStat.java @@ -2,6 +2,7 @@ package pers.gwyog.gtneioreplugin.plugin.gregtech5; import codechicken.lib.gui.GuiDraw; import codechicken.nei.PositionedStack; +import cpw.mods.fml.common.Loader; import gregtech.api.GregTech_API; import net.minecraft.client.resources.I18n; import net.minecraft.item.ItemStack; @@ -176,12 +177,18 @@ public class PluginGT5VeinStat extends PluginGT5Base { GuiDraw.drawString(I18n.format(getLocalizedVeinName(oreLayer)[1]), 2, 30, 0x404040, false); } else*/ - if (getGTOreLocalizedName(oreLayer.Meta[0]).contains("Ore")) - GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]).split("Ore")[0] + "" + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); - else if (getGTOreLocalizedName(oreLayer.Meta[0]).contains("Sand")) - GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]).split("Sand")[0] + "" + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); - else - GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]) + " " + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); + if(Loader.isModLoaded("visualprospecting")) { + GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + I18n.format(oreLayer.veinName) + "" + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); + } + else { + if (getGTOreLocalizedName(oreLayer.Meta[0]).contains("Ore")) + GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]).split("Ore")[0] + "" + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); + else if (getGTOreLocalizedName(oreLayer.Meta[0]).contains("Sand")) + GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]).split("Sand")[0] + "" + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); + else + GuiDraw.drawString(I18n.format("gtnop.gui.nei.veinName") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]) + " " + I18n.format("gtnop.gui.nei.vein"), 2, 20, 0x404040, false); + } + drawToolTip(sDimNames); if (!ttDisplayed) { GuiDraw.drawString(I18n.format("gtnop.gui.nei.primaryOre") + ": " + getGTOreLocalizedName(oreLayer.Meta[0]), 2, 50, 0x404040, false); |