mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed a crash when looking at an item in the lexicon that doesn't have a recipe present elsewhere.
This commit is contained in:
1 parent
506219e3b1
commit
c7df3b0229
1 file changed
+2
-2
@@ -156,8 +156,8 @@ public class PageRecipe extends LexiconPage {
|
||||
|
||||
EntryData data = LexiconRecipeMappings.getDataForStack(tooltipStack);
|
||||
ItemStack book = Minecraft.getMinecraft().thePlayer.getCurrentEquippedItem();
|
||||
boolean hasKnowledge = book != null && book.getItem() instanceof ILexicon && ((ILexicon) book.getItem()).isKnowledgeUnlocked(book, data.entry.getKnowledgeType());
|
||||
if(data != null && (data.entry != gui.getEntry() || data.page != gui.getPageOn()) && hasKnowledge) {
|
||||
|
||||
if(data != null && (data.entry != gui.getEntry() || data.page != gui.getPageOn()) && book != null && book.getItem() instanceof ILexicon && ((ILexicon) book.getItem()).isKnowledgeUnlocked(book, data.entry.getKnowledgeType())) {
|
||||
tooltipEntry = true;
|
||||
|
||||
if(!mouseDownLastTick && mouseDown && GuiScreen.isShiftKeyDown()) {
|
||||
|
||||
Reference in new issue
Block a user