mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 06:24:43 +00:00
Add CreativeTabs#getLabelColor
Patch skipped, was already applied in https://github.com/MinecraftForge/MinecraftForge/commit/47a11b9a7e35c2a2273b6828bd802f2cb06f5cd7#diff-0ea0358443c2ecf3b8682228736149b3R71
This commit is contained in:
1 parent
f2b54acd67
commit
94af6c7f9d
1 file changed
+5
-2
+5
-2
@@ -83,15 +83,18 @@
|
||||
if (this.field_147062_A.func_146179_b().isEmpty()) {
|
||||
for(Item item : Item.field_150901_e) {
|
||||
item.func_150895_a(ItemGroup.field_78027_g, guicontainercreative$containercreative.field_148330_a);
|
||||
@@ -323,7 +367,7 @@
|
||||
@@ -323,9 +367,9 @@
|
||||
|
||||
protected void func_146979_b(int p_146979_1_, int p_146979_2_) {
|
||||
ItemGroup itemgroup = ItemGroup.field_78032_a[field_147058_w];
|
||||
- if (itemgroup.func_78019_g()) {
|
||||
+ if (itemgroup != null && itemgroup.func_78019_g()) {
|
||||
GlStateManager.func_179084_k();
|
||||
this.field_146289_q.func_211126_b(I18n.func_135052_a(itemgroup.func_78024_c()), 8.0F, 6.0F, 4210752);
|
||||
- this.field_146289_q.func_211126_b(I18n.func_135052_a(itemgroup.func_78024_c()), 8.0F, 6.0F, 4210752);
|
||||
+ this.field_146289_q.func_211126_b(I18n.func_135052_a(itemgroup.func_78024_c()), 8.0F, 6.0F, itemgroup.getLabelColor());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -357,7 +401,7 @@
|
||||
this.field_147066_y = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user