mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Fixed booklet achievement info not showing the item if it has a wildcard value
This commit is contained in:
parent
93fcacdacb
commit
aa0ec6a575
2 changed files with 17 additions and 15 deletions
|
@ -117,8 +117,9 @@ public class BookletUtils{
|
|||
for(BookletPage page : booklet.currentEntrySet.chapter.pages){
|
||||
if(page != null && page.getItemStacksForPage() != null){
|
||||
for(ItemStack stack : page.getItemStacksForPage()){
|
||||
if(stack != null){
|
||||
for(Achievement achievement : InitAchievements.achievementList){
|
||||
if(stack != null && achievement.theItemStack != null && achievement.theItemStack.isItemEqual(stack)){
|
||||
if(achievement.theItemStack != null && ItemUtil.areItemsEqual(stack, achievement.theItemStack, true)){
|
||||
if(pre){
|
||||
booklet.mc.getTextureManager().bindTexture(GuiBooklet.resLoc);
|
||||
booklet.drawTexturedModalRect(booklet.guiLeft+booklet.xSize+1, booklet.guiTop-18, 166, 154, 22, 21);
|
||||
|
@ -139,6 +140,7 @@ public class BookletUtils{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(infoList != null){
|
||||
booklet.drawHoveringText(infoList, mouseX, mouseY);
|
||||
|
|
|
@ -261,7 +261,7 @@ public class GuiBooklet extends GuiScreen{
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked", "MismatchedQueryAndUpdateOfCollection"})
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void initGui(){
|
||||
this.guiLeft = (this.width-this.xSize)/2;
|
||||
|
|
Loading…
Reference in a new issue