Merge pull request #442 from narc0tiq/master

Bug report + fix: NullPointerException at [...](GuiRefinery.java:85)
This commit is contained in:
CovertJaguar 2012-11-24 10:19:01 -08:00
commit 36ef2cb61a

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