Fixed NPE when draining the Blood Altar while it has an empty buffer.
This commit is contained in:
parent
2a25a149fc
commit
fa6b338a03
2 changed files with 3 additions and 5 deletions
|
@ -797,10 +797,6 @@ public class BloodAltar implements IFluidHandler
|
|||
if (doDrain)
|
||||
{
|
||||
fluidOutput.amount -= drained;
|
||||
if (fluidOutput.amount <= 0)
|
||||
{
|
||||
fluidOutput = null;
|
||||
}
|
||||
}
|
||||
return stack;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue