Fixed crash with Grid, fixes #1416

This commit is contained in:
raoulvdberge
2017-08-19 15:02:14 +02:00
parent fccd96f3e6
commit cd1467af16
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
### 1.5.17 ### 1.5.17
- Re-added support for OpenComputers (raoulvdberge) - Re-added support for OpenComputers (raoulvdberge)
- Fixed crash with Grid (raoulvdberge)
### 1.5.16 ### 1.5.16
- Fixed crash when placing a Controller (raoulvdberge) - Fixed crash when placing a Controller (raoulvdberge)

View File

@@ -618,6 +618,10 @@ public class GuiGrid extends GuiBase implements IGridDisplay {
konami.pop(); konami.pop();
} }
if (searchField == null) {
return;
}
if (checkHotbarKeys(keyCode)) { if (checkHotbarKeys(keyCode)) {
// NO OP // NO OP
} else if (searchField.textboxKeyTyped(character, keyCode)) { } else if (searchField.textboxKeyTyped(character, keyCode)) {