Browse Source

[2.0.4.6] Cleanup

Zariteis 4 years ago
parent
commit
cbaf8f36a4
2 changed files with 2 additions and 15 deletions
  1. 0 4
      Patches/Patch_GameScript_MultiPachSlots.cs
  2. 2 11
      StorageExpansion.cs

+ 0 - 4
Patches/Patch_GameScript_MultiPachSlots.cs

@@ -24,12 +24,9 @@ namespace StorageExpansion.Patches
       yield return AccessTools.Method(typeof(GameScript), "PlaceItemStorage");
       yield return AccessTools.Method(typeof(GameScript), "PlaceOneItemStorage");
       yield return AccessTools.Method(typeof(GameScript), "SelectItemStorage");
-      //yield return AccessTools.Method(typeof(GameScript), "ShiftClickStorage");
-      //yield return AccessTools.Method(typeof(GameScript), "ShiftClick");
       yield return AccessTools.Method(typeof(GameScript), "SplitItemStorage");
       yield return AccessTools.Method(typeof(GameScript), "CombineItemStorage");
       yield return AccessTools.Method(typeof(GameScript), "SwapItemStorage");
-      //yield return AccessTools.Method(typeof(GameScript), "RefreshSlotStorage");
       yield return AccessTools.Method(typeof(GameScript), "HoverItemStorage");
     
       yield return AccessTools.Method(typeof(GadgetCoreAPI).Assembly.GetType("GadgetCore.Patches.Patch_GameScript_RefreshSlotStorage"), "Prefix");
@@ -41,7 +38,6 @@ namespace StorageExpansion.Patches
       yield return AccessTools.Method(typeof(GadgetCoreAPI).Assembly.GetType("GadgetCore.Patches.Patch_GameScript_SplitItemStorage"), "Prefix");
       yield return AccessTools.Method(typeof(GadgetCoreAPI).Assembly.GetType("GadgetCore.Patches.Patch_GameScript_ShiftClickStorage"), "Prefix");
       yield return AccessTools.Method(typeof(GadgetCoreAPI).Assembly.GetType("GadgetCore.Patches.Patch_GameScript_RefreshStoragePage"), "Prefix");
-      //yield return AccessTools.Method("GadgetCore.Patches.Patch_GameScript_RefreshStoragePage:Prefix"); 
     }
 
 

+ 2 - 11
StorageExpansion.cs

@@ -8,7 +8,7 @@ namespace StorageExpansion
   [Gadget("StorageExpansion", RequiredOnClients: false, LoadBefore: new string[] { "QuickStack" })]
   public class StorageExpansion : Gadget<StorageExpansion>
   {
-    public const string MOD_VERSION = "1.0"; // Set this to the version of your mod.
+    public const string MOD_VERSION = "1.1"; // Set this to the version of your mod.
     public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file.
 
     protected override void LoadConfig()
@@ -22,7 +22,7 @@ namespace StorageExpansion
       }
 
       Core.settingSizeEnum = Config.ReadEnum("StorageSize", StorageSizeEnum.Large, requiresRestart: true, comments: new string[] { });
-      
+
       Config.Save();
     }
 
@@ -35,15 +35,6 @@ namespace StorageExpansion
     {
       Logger.Log("Storage Expansion v" + Info.Mod.Version);
       Core.logger = Logger;
-
-      SceneManager.sceneLoaded += OnSceneLoaded;
-    }
-
-    internal static void OnSceneLoaded(Scene scene, LoadSceneMode mode)
-    {
-      if (scene.buildIndex == 1)
-      {
-      }
     }
   }
 }