Guard against an NPE in the refinery GUI.

This commit is contained in:
Octav Sandulescu 2012-11-24 09:44:21 +02:00
parent ecc3f98024
commit 87bddae480

View file

@ -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);
}
}