예제 #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);
 }
예제 #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;
 }