mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 15:22:57 +00:00
Fixed alyzers showing unlocalized string instead of gui.alyzer.nodescription
This commit is contained in:
1 parent
f556633a80
commit
7556f1d597
1 file changed
+2
-1
@@ -21,6 +21,7 @@ import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import forestry.api.apiculture.EnumBeeChromosome;
|
||||
@@ -218,7 +219,7 @@ public abstract class GuiAlyzer extends GuiForestry<TileForestry> {
|
||||
|
||||
newLine();
|
||||
String description = individual.getGenome().getPrimary().getDescription();
|
||||
if (description == null || description.isEmpty())
|
||||
if (StringUtils.isBlank(description) || description.startsWith("for.description."))
|
||||
drawSplitLine(StringUtil.localize("gui.alyzer.nodescription"), 12, 208, 0x666666);
|
||||
else {
|
||||
String tokens[] = description.split("\\|");
|
||||
|
||||
Reference in new issue
Block a user