Ignore:
Timestamp:
Dec 13, 2025, 12:06:53 PM (9 hours ago)
Author:
alloc
Message:

Compatibility for V 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/WebServer/src/ModApi.cs

    r505 r511  
    88        public class ModApi : IModApi {
    99                private Web webInstance;
    10                 private Mod modInstance;
     10                public static Mod ModInstance;
    1111               
    1212                public void InitMod (Mod _modInstance) {
    1313                        ModEvents.GameStartDone.RegisterHandler (GameStartDone);
    1414                        ModEvents.WorldShuttingDown.RegisterHandler (WorldShuttingDown);
    15                         modInstance = _modInstance;
     15                        ModInstance = _modInstance;
    1616
    1717                        Harmony.CreateAndPatchAll (Assembly.GetExecutingAssembly ());
     
    2323                        }
    2424                       
    25                         webInstance = new Web (modInstance.Path);
     25                        webInstance = new Web (ModInstance.Path);
    2626                        LogBuffer.Init ();
    2727
Note: See TracChangeset for help on using the changeset viewer.