Merge pull request #442 from narc0tiq/master
Bug report + fix: NullPointerException at [...](GuiRefinery.java:85)
This commit is contained in:
commit
36ef2cb61a
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