Fix typo in patch, that was preventing the key assigned to the chat keybind from working while in a searchable tab in the creative GUI. (#5276)

This commit is contained in:
David Quintana 2018-12-16 20:04:37 +01:00 committed by LexManos
parent 52b6da1759
commit e47a4ea514

View file

@ -46,7 +46,7 @@
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_) {
this.field_195377_F = false;
- if (field_147058_w != ItemGroup.field_78027_g.func_78021_a()) {
+ if (ItemGroup.field_78032_a[field_147058_w].hasSearchBar()) {
+ if (!ItemGroup.field_78032_a[field_147058_w].hasSearchBar()) {
if (this.field_146297_k.field_71474_y.field_74310_D.func_197976_a(p_keyPressed_1_, p_keyPressed_2_)) {
this.field_195377_F = true;
this.func_147050_b(ItemGroup.field_78027_g);