Fixed error logs when toggling the Pattern Grid from and to processing mode

This commit is contained in:
raoulvdberge
2017-12-31 10:41:38 +01:00
parent d27a5b24fa
commit 97874d56a7
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
### 1.5.31
- Improved the "cannot craft! loop in processing..." error message (raoulvdberge)
- Fixed error logs when toggling the Pattern Grid from and to processing mode (raoulvdberge)
### 1.5.30
- Fixed crashing bug when MCMultiPart is not installed (raoulvdberge)

View File

@@ -662,6 +662,10 @@ public class GuiGrid extends GuiBase implements IGridDisplay {
} else if (button == blockingPattern) {
TileDataManager.setParameter(TileGrid.BLOCKING_PATTERN, blockingPattern.isChecked());
} else if (button == processingPattern) {
// Rebuild the inventory slots before the slot change packet arrives
TileGrid.PROCESSING_PATTERN.setValue(processingPattern.isChecked());
((ContainerGrid) this.inventorySlots).initSlots();
TileDataManager.setParameter(TileGrid.PROCESSING_PATTERN, processingPattern.isChecked());
} else if (button == tabPageLeft) {
grid.onTabPageChanged(grid.getTabPage() - 1);