Fix 1.6 build and indexed map clearing

This commit is contained in:
2026-10-02 04:00:27 -04:00
parent 691d97ef2c
commit 5bc4202100
6 changed files with 16 additions and 3 deletions
+1
View File
@@ -1 +1,2 @@
[Oo]bj/ [Oo]bj/
[Bb]in/
Binary file not shown.
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
+7 -2
View File
@@ -3,6 +3,7 @@
<PropertyGroup> <PropertyGroup>
<OutDir>..\..\1.6\Assemblies\</OutDir> <OutDir>..\..\1.6\Assemblies\</OutDir>
<Copyright>Copyright (c) 2026 Bradson</Copyright> <Copyright>Copyright (c) 2026 Bradson</Copyright>
<PolySharpUseEmbeddedAttributeForGeneratedTypes>false</PolySharpUseEmbeddedAttributeForGeneratedTypes>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DefineConstants>DEBUG;V1_5;V1_6</DefineConstants> <DefineConstants>DEBUG;V1_5;V1_6</DefineConstants>
@@ -11,8 +12,12 @@
<DefineConstants>V1_5;V1_6</DefineConstants> <DefineConstants>V1_5;V1_6</DefineConstants>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.6.*" /> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net48" Version="1.0.3" PrivateAssets="all" />
<PackageReference Include="Lib.Harmony" Version="2.3.*" ExcludeAssets="runtime" /> <PackageReference Include="Krafs.Rimworld.Ref" Version="1.6.4871" />
<PackageReference Include="Lib.Harmony" Version="2.3.6" ExcludeAssets="runtime" />
<PackageReference Update="Zetrith.Prepatcher" Version="1.2.0" />
<PackageReference Update="PolySharp" Version="1.16.0" />
<PackageReference Update="Krafs.Publicizer" Version="2.3.2" />
<Publicize Include="mscorlib:System.Collections.Generic.Dictionary`2._buckets" /> <Publicize Include="mscorlib:System.Collections.Generic.Dictionary`2._buckets" />
<Publicize Include="mscorlib:System.Collections.Generic.Dictionary`2._entries" /> <Publicize Include="mscorlib:System.Collections.Generic.Dictionary`2._entries" />
</ItemGroup> </ItemGroup>
@@ -140,6 +140,7 @@ public class IndexedFishMap<TX, TY> : IList<(TX X, TY Y)>, IList, IReadOnlyList<
public void Clear() public void Clear()
{ {
_xIndices.Clear(); _xIndices.Clear();
_yIndices.Clear();
_items.Clear(); _items.Clear();
} }