Haulables fix, and Mergeables fix #3

This commit is contained in:
bbradson
2022-10-27 01:34:44 +02:00
parent fbe078f389
commit 467102dd52
4 changed files with 6 additions and 6 deletions
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -212,7 +212,7 @@ public class Haulables : ClassWithFishPatches
instance.haulables.Add(t);
cache.contains = true;
cache.ShouldRefreshNow = false;
//HaulablesCache.Get[new(t, instance)] = cache;
HaulablesCache.Get[new(t, instance)] = cache;
}
}
@@ -237,7 +237,7 @@ public class Haulables : ClassWithFishPatches
instance.haulables.Remove(t);
cache.contains = false;
cache.ShouldRefreshNow = false;
//HaulablesCache.Get[new(t, instance)] = cache;
HaulablesCache.Get[new(t, instance)] = cache;
}
}
+4 -4
View File
@@ -24,7 +24,7 @@ public class Mergeables : ClassWithFishPatches
instance.mergeables.Remove(t);
cache.contains = false;
cache.ShouldRefreshNow = false;
//MergeablesCache.Get[new(t, instance)] = cache;
MergeablesCache.Get[new(t, instance)] = cache;
}
}
else
@@ -35,7 +35,7 @@ public class Mergeables : ClassWithFishPatches
instance.mergeables.Add(t);
cache.contains = true;
cache.ShouldRefreshNow = false;
//MergeablesCache.Get[new(t, instance)] = cache;
MergeablesCache.Get[new(t, instance)] = cache;
}
}
}
@@ -59,7 +59,7 @@ public class Mergeables : ClassWithFishPatches
cache.contains = true;
cache.ShouldRefreshNow = false;
//MergeablesCache.Get[new(t, instance)] = cache;
MergeablesCache.Get[new(t, instance)] = cache;
}
public static CodeInstructions Transpiler(CodeInstructions CodeInstructions)
=> Reflection.MakeReplacementCall(CheckAdd);
@@ -82,7 +82,7 @@ public class Mergeables : ClassWithFishPatches
cache.contains = false;
cache.ShouldRefreshNow = false;
//MergeablesCache.Get[new(t, instance)] = cache;
MergeablesCache.Get[new(t, instance)] = cache;
}
}
public static CodeInstructions Transpiler(CodeInstructions CodeInstructions)