Esempio n. 1
0
 public static AddonLoader GetInstance(MinecraftHandler mc)
 {
     // DoubleLock
     if (instance == null)
     {
         lock (m_lock)
         {
             if (instance == null)
             {
                 instance = new AddonLoader(mc);
             }
         }
     }
     instance.LoadAddons(mc);
     return(instance);
 }
Esempio n. 2
0
 public static AddonLoader GetInstance(MinecraftHandler mc)
 {
     // DoubleLock
     if (instance == null)
     {
         lock (m_lock)
         {
             if (instance == null)
             {
                 instance = new AddonLoader(mc);
             }
         }
     }
     instance.LoadAddons(mc);
     return instance;
 }