mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
Fix creative mode screen not correctly using CreativeModeTab::getTabsImage (#9627)
This commit is contained in:
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());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user