prevent crash when XP juice could not be found

This commit is contained in:
Matthias Mann committed 2015-01-04 13:28:30 +01:00
1 parent 74742841fe
commit da6daab14c
1 file changed
+1 -1
@@ -148,7 +148,7 @@ public class ExperienceContainer {
}
public boolean canFill(ForgeDirection from, Fluid fluid) {
return fluid != null && fluid.getID() == EnderIO.fluidXpJuice.getID();
return fluid != null && EnderIO.fluidXpJuice != null && fluid.getID() == EnderIO.fluidXpJuice.getID();
}
public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {