Fix creative mode screen not correctly using CreativeModeTab::getTabsImage (#9627)

This commit is contained in:
Nathan authored and LexManos committed 2023-07-14 07:10:49 -07:00
1 parent b1965db30b
commit fc7af96bde
4 files changed
+20 -5

No files matched your search

@@ -96,6 +96,14 @@ public class CreativeModeTabTest
.build()
);
}
final ResourceLocation custom_tabs_image = new ResourceLocation(MOD_ID, "textures/gui/container/creative_inventory/custom_tabs.png");
helper.register(new ResourceLocation(MOD_ID, "with_tabs_image"), CreativeModeTab.builder()
.title(Component.translatable("itemGroup.with_tabs_image"))
.icon(() -> new ItemStack(Blocks.BRICKS))
.displayItems((params, output) -> output.accept(Blocks.BRICKS))
.withTabsImage(custom_tabs_image)
.build());
});
}