Fixed Grid GUI crash, fixes #1469
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
### 1.5.19
|
||||
- Updated Forge to 2493 (MC 1.12.2) (raoulvdberge)
|
||||
- Fixed RS blocks requiring a pickaxe to be broken (raoulvdberge)
|
||||
- Fixed Grid GUI crash (raoulvdberge)
|
||||
|
||||
### 1.5.18
|
||||
- Added Project E integration for the External Storage on the Transmutation Table (raoulvdberge)
|
||||
|
@@ -230,8 +230,13 @@ public class GuiGrid extends GuiBase implements IGridDisplay {
|
||||
scrollbar.setMaxOffset(getRows() - getVisibleRows());
|
||||
}
|
||||
|
||||
tabPageLeft.visible = grid.getTotalTabPages() > 0;
|
||||
tabPageRight.visible = grid.getTotalTabPages() > 0;
|
||||
if (tabPageLeft != null) {
|
||||
tabPageLeft.visible = grid.getTotalTabPages() > 0;
|
||||
}
|
||||
|
||||
if (tabPageRight != null) {
|
||||
tabPageRight.visible = grid.getTotalTabPages() > 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user