Advertisement
Guest User

Untitled

a guest
Jul 16th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. The point is to allow filling the tank only with lava. It still accepts water though....
  2.  
  3. @Override
  4. public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {
  5.  
  6. int df = this.tank.fill(resource, doFill);
  7. if ((df > 0) && (doFill) && (resource.getFluid().equals(FluidRegistry.LAVA)))
  8. {
  9. this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
  10. markDirty();
  11. }
  12. return df;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement