Пример #1
0
 public virtual void Func_22091_b()
 {
     try
     {
         string file = System.IO.Path.Combine(worldDir, "session.lock");
         using (FileStream fs = File.OpenRead(file))
         {
             java.io.DataInputStream datainputstream = new java.io.DataInputStream(fs);
             try
             {
                 if (datainputstream.ReadLong() != field_22100_d)
                 {
                     throw new net.minecraft.src.MinecraftException("The save is being accessed from another location, aborting"
                                                                    );
                 }
             }
             finally
             {
                 datainputstream.Close();
             }
         }
     }
     catch (System.IO.IOException)
     {
         throw new net.minecraft.src.MinecraftException("Failed to check session lock, aborting"
                                                        );
     }
 }
Пример #2
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     protocolVersion = datainputstream.ReadInt();
     username        = ReadString(datainputstream, 16);
     mapSeed         = datainputstream.ReadLong();
     dimension       = datainputstream.ReadByte();
 }
Пример #3
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     time = datainputstream.ReadLong();
 }