Guard against an NPE in the refinery GUI.
This commit is contained in:
parent
ecc3f98024
commit
87bddae480
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ public class GuiRefinery extends GuiAdvancedInterface {
|
|||
if (slot != null) {
|
||||
LiquidStack liquid = LiquidContainerRegistry.getLiquidForFilledItem(mc.thePlayer.inventory.getItemStack());
|
||||
|
||||
if(liquid == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
container.setFilter(position, liquid.itemID, liquid.itemMeta);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue