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:
parent
8b8471fca2
commit
1033d817ab
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue