mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28: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){
|
for(BookletPage page : booklet.currentEntrySet.chapter.pages){
|
||||||
if(page != null && page.getItemStacksForPage() != null){
|
if(page != null && page.getItemStacksForPage() != null){
|
||||||
for(ItemStack stack : page.getItemStacksForPage()){
|
for(ItemStack stack : page.getItemStacksForPage()){
|
||||||
|
if(stack != null){
|
||||||
for(Achievement achievement : InitAchievements.achievementList){
|
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){
|
if(pre){
|
||||||
booklet.mc.getTextureManager().bindTexture(GuiBooklet.resLoc);
|
booklet.mc.getTextureManager().bindTexture(GuiBooklet.resLoc);
|
||||||
booklet.drawTexturedModalRect(booklet.guiLeft+booklet.xSize+1, booklet.guiTop-18, 166, 154, 22, 21);
|
booklet.drawTexturedModalRect(booklet.guiLeft+booklet.xSize+1, booklet.guiTop-18, 166, 154, 22, 21);
|
||||||
|
@ -139,6 +140,7 @@ public class BookletUtils{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(infoList != null){
|
if(infoList != null){
|
||||||
booklet.drawHoveringText(infoList, mouseX, mouseY);
|
booklet.drawHoveringText(infoList, mouseX, mouseY);
|
||||||
|
|
|
@ -261,7 +261,7 @@ public class GuiBooklet extends GuiScreen{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({"unchecked", "MismatchedQueryAndUpdateOfCollection"})
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public void initGui(){
|
public void initGui(){
|
||||||
this.guiLeft = (this.width-this.xSize)/2;
|
this.guiLeft = (this.width-this.xSize)/2;
|
||||||
|
|
Loading…
Reference in a new issue