Fixed an null pointer exception when clicking an empty slot in the recipes of the assembly table reported by iamamitten.

This commit is contained in:
psxlover 2012-07-15 20:52:52 +03:00
parent 8b8471fca2
commit 1033d817ab

View file

@ -134,6 +134,9 @@ public class GuiAssemblyTable extends GuiAdvancedInterface {
if (position != -1) { if (position != -1) {
RecipeSlot slot = (RecipeSlot) slots[position]; RecipeSlot slot = (RecipeSlot) slots[position];
if (slot.recipe == null)
return;
SelectionMessage message = new SelectionMessage(); SelectionMessage message = new SelectionMessage();
if (assemblyTable.isPlanned(slot.recipe)) { if (assemblyTable.isPlanned(slot.recipe)) {