Skip to content

Commit

Permalink
Merge pull request #56 from klikli-dev/fix/storage-controller-gui
Browse files Browse the repository at this point in the history
Fix/storage controller gui
  • Loading branch information
klikli-dev authored Dec 20, 2020
2 parents 6953efc + edd46ec commit d57e792
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partia

@Override
public void drawGuiContainerForegroundLayer(MatrixStack matrixStack, int mouseX, int mouseY) {
super.drawGuiContainerForegroundLayer(matrixStack, mouseX, mouseY);
//Note: Do not call super.drawGuiContainerForegroundLayer(matrixStack, mouseX, mouseY);
// it renders inventory titles which no vanilla inventory does

if (!this.isGuiValid()) {
return;
}
Expand Down Expand Up @@ -771,7 +773,8 @@ else if (searchText.startsWith("$")) {
return tagStringBuilder.toString().toLowerCase().contains(searchText.toLowerCase().substring(1));
}
else {
return stack.getDisplayName().getUnformattedComponentText().toLowerCase()
//Note: If search stops working, forge may have re-implemented .getUnformattedComponentText() for translated text components
return stack.getDisplayName().getString().toLowerCase()
.contains(searchText.toLowerCase());
}
}
Expand Down

0 comments on commit d57e792

Please sign in to comment.