Entries that come from botania addons will not have the "View Online" button.

This commit is contained in:
Lizbeth Rika committed 2015-03-31 20:03:28 +01:00
1 parent 3bb5cf2ca6
commit 60da56586a
1 file changed
+3 -1
@@ -33,6 +33,7 @@ import vazkii.botania.client.gui.lexicon.button.GuiButtonBackWithShift;
import vazkii.botania.client.gui.lexicon.button.GuiButtonPage;
import vazkii.botania.client.gui.lexicon.button.GuiButtonShare;
import vazkii.botania.client.gui.lexicon.button.GuiButtonViewOnline;
import vazkii.botania.common.lexicon.LexiconData;
public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IParented {
@@ -62,7 +63,8 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
buttonList.add(leftButton = new GuiButtonPage(1, left, top + guiHeight - 10, false));
buttonList.add(rightButton = new GuiButtonPage(2, left + guiWidth - 18, top + guiHeight - 10, true));
buttonList.add(new GuiButtonShare(3, left + guiWidth - 6, top - 2));
buttonList.add(new GuiButtonViewOnline(4, left - 8, top + 8));
if(!(entry instanceof IAddonEntry))
buttonList.add(new GuiButtonViewOnline(4, left - 8, top + 8));
if(!GuiLexicon.isValidLexiconGui(this)) {
currentOpenLexicon = new GuiLexicon();