예제 #1
0
 public void func_22091_b()
 {
     try
     {
         var file = new File(field_22099_b, "session.lock");
         var datainputstream = new DataInputStream(new FileInputStream(file));
         try
         {
             if (datainputstream.readLong() != field_22100_d)
             {
                 throw new MinecraftException("The save is being accessed from another location, aborting");
             }
         }
         finally
         {
             datainputstream.close();
         }
     }
     catch (IOException)
     {
         throw new MinecraftException("Failed to check session lock, aborting");
     }
 }