Skip to content

Commit 9f2fe08

Browse files
committed
fix: 🐛 Fixed "no items match results" message to not appear twice on the screen when minecraft window gets resized
1 parent f087c22 commit 9f2fe08

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ loader_version_range=[4,)
1313
mod_id=sophisticatedcore
1414
mod_name=Sophisticated Core
1515
mod_license=All Rights Reserved
16-
mod_version=1.3.60
16+
mod_version=1.3.61
1717
mod_group_id=sophisticatedcore
1818
mod_authors=P3pp3rF1y
1919
mod_description=A library / shared functionality mod for Sophisticated Storage and Backpacks

src/main/java/net/p3pp3rf1y/sophisticatedcore/client/gui/StorageScreenBase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ protected void addSearchBox() {
290290
}
291291
addRenderableWidget(searchBox);
292292

293+
if (noResultsLabel != null) {
294+
removeWidget(noResultsLabel);
295+
}
293296
noResultsLabel = new Label(new Position(leftPos + 7, topPos + 18), Component.translatable(TranslationHelper.INSTANCE.translGui("label.no_search_results")));
294297
if (visibleSlotsCount == 0) {
295298
addRenderableWidget(noResultsLabel);

0 commit comments

Comments
 (0)