Ejemplo 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);
 }
Ejemplo 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;
 }