From 1af050de6af1f391010961ba6aba7dc90bfdf27a Mon Sep 17 00:00:00 2001 From: extclp <2842417407@qq.com> Date: Wed, 27 Sep 2023 00:35:59 +0800 Subject: [PATCH] Fix creative tab title (#4437) --- .../fabric/FabricCommonInitializer.java | 3 ++- .../botania/forge/ForgeCommonInitializer.java | 3 ++- .../creative_inventory/tab_botania.png | Bin 1952 -> 1593 bytes 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Fabric/src/main/java/vazkii/botania/fabric/FabricCommonInitializer.java b/Fabric/src/main/java/vazkii/botania/fabric/FabricCommonInitializer.java index 7740ac2a3..af8ebbadb 100644 --- a/Fabric/src/main/java/vazkii/botania/fabric/FabricCommonInitializer.java +++ b/Fabric/src/main/java/vazkii/botania/fabric/FabricCommonInitializer.java @@ -38,6 +38,7 @@ import net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant; import net.fabricmc.fabric.api.transfer.v1.fluid.base.FullItemFluidStorage; import net.fabricmc.fabric.api.transfer.v1.item.ItemStorage; +import net.minecraft.ChatFormatting; import net.minecraft.commands.CommandBuildContext; import net.minecraft.commands.CommandSourceStack; import net.minecraft.commands.Commands; @@ -211,7 +212,7 @@ private void registryInit() { BuiltInRegistries.CREATIVE_MODE_TAB, BotaniaRegistries.BOTANIA_TAB_KEY, FabricItemGroup.builder() - .title(Component.translatable("itemGroup.botania.botania")) + .title(Component.translatable("itemGroup.botania.botania").withStyle((style -> style.withColor(ChatFormatting.WHITE)))) .icon(() -> new ItemStack(BotaniaItems.lexicon)) .backgroundSuffix("botania.png") .build() diff --git a/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java b/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java index 5a687fd4e..456350c41 100644 --- a/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java +++ b/Forge/src/main/java/vazkii/botania/forge/ForgeCommonInitializer.java @@ -3,6 +3,7 @@ import com.google.common.base.Suppliers; import com.mojang.brigadier.CommandDispatcher; +import net.minecraft.ChatFormatting; import net.minecraft.commands.CommandSourceStack; import net.minecraft.commands.Commands; import net.minecraft.core.Registry; @@ -219,7 +220,7 @@ private void registryInit() { }); bind(Registries.CREATIVE_MODE_TAB, consumer -> { consumer.accept(CreativeModeTab.builder() - .title(Component.translatable("itemGroup.botania.botania")) + .title(Component.translatable("itemGroup.botania.botania").withStyle(style -> style.withColor(ChatFormatting.WHITE))) .icon(() -> new ItemStack(BotaniaItems.lexicon)) .withTabsBefore(CreativeModeTabs.NATURAL_BLOCKS) .backgroundSuffix("botania.png") diff --git a/Xplat/src/main/resources/assets/minecraft/textures/gui/container/creative_inventory/tab_botania.png b/Xplat/src/main/resources/assets/minecraft/textures/gui/container/creative_inventory/tab_botania.png index 519a9f5d6b3d5c2f5a6643ef15abecc46c420cd7..3d3df05bce2a9036a06c874cef79434a7239e635 100644 GIT binary patch literal 1593 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K5893O0R7}x|G$6%U;1OBOz`%C|gc+x5^GP!> zu)g+maSW-L^Y%`>UvQuveDb{@B*a6I3U&o5tQ)<*wbE&e34+rR3(HS4j@{k9)xw_l4| zFD>X{tfg*$P)}cfb<_H~=(}78et&;oUT*T?z`ecI;h~|+moL9s-M?E%;{KnrmmjC^ zw&J_d8NPq-ov(^-t{5@+_s_q2@Zvwcepb0VKjpBdZmuiqP0_wVQ7=`SYle|0Ump?mxDub$u*Bf;;ZnfE}RTrOmZTOxNb3K0jtIzHFr60f5RPrlaEl>Zc#MFMCzr4WW z@TK)tUsq>d-IAvMe@pn?8dq25I=|JcUTvPdKTR;>ap2aEY5J^oe}AsjyEiYtUjx@)bHD1gH!FX${^j~Ve-}^w-*#~wKf{f=Q^OhL z{=Q$ib=A+*tgY`f5A1rz|E2r+|E<@jeP=Oy`r&8d-kQ&+LJ!<2XN9cK+W}`%i}!U%LBR?|zC=J^bLL#Rd2^=avp=8ag#P#aoBsS? zhM!SBOH%?9!$B5?CQb$xVFnI01_2)ig&7PE28<0@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