Skip to content

Commit f2b24e2

Browse files
committed
Fixed polytopia dependency bug
1 parent e489558 commit f2b24e2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

PolyMod.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
https://polymod.dev/nuget/v3/index.json;
1111
</RestoreAdditionalProjectSources>
1212
<Configurations>IL2CPP</Configurations>
13-
<Version>1.1.0</Version>
13+
<Version>1.1.1</Version>
1414
<PolytopiaVersion>2.12.0.13844</PolytopiaVersion>
1515
<Authors>PolyModdingTeam</Authors>
1616
<Description>The Battle of Polytopia's mod loader.</Description>

src/Managers/Main.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ internal static void Init()
7575
{
7676
stopwatch.Start();
7777
Harmony.CreateAndPatchAll(typeof(Main));
78+
Mod.Manifest polytopia = new(
79+
"polytopia",
80+
"The Battle of Polytopia",
81+
new(Application.version.ToString()),
82+
new string[] { "Midjiwan AB" },
83+
Array.Empty<Mod.Dependency>()
84+
);
85+
Registry.mods.Add(polytopia.id, new(polytopia, Mod.Status.Success, new()));
7886
Loader.LoadMods(Registry.mods);
7987
dependencyCycle = !Loader.SortMods(Registry.mods);
8088
if (dependencyCycle) return;
@@ -112,14 +120,6 @@ internal static void Init()
112120
internal static void Load(JObject gameLogicdata)
113121
{
114122
stopwatch.Start();
115-
Mod.Manifest polytopia = new(
116-
"polytopia",
117-
"The Battle of Polytopia",
118-
new(VersionManager.SemanticVersion.ToString()),
119-
new string[] { "Midjiwan AB" },
120-
Array.Empty<Mod.Dependency>()
121-
);
122-
Registry.mods.Add(polytopia.id, new(polytopia, Mod.Status.Success, new()));
123123
Loc.BuildAndLoadLocalization(
124124
JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(
125125
Plugin.GetResource("localization.json")

0 commit comments

Comments
 (0)