Added gas grid optimization, various despawn optimizations, new hauling optimizations utilizing events and regions, bugfixes for old patches and for vanilla functions too, as well as smaller additions. 1.3 files removed.

This commit is contained in:
bbradson
2024-01-27 10:24:24 +01:00
parent 0247ad59a1
commit c8b764de68
151 changed files with 7318 additions and 2145 deletions
@@ -68,14 +68,15 @@ public static class IndexGetter
Delegate func;
while (!_indexFuncs.TryGetValue(type, out func!))
{
type = type.BaseType
?? throw new($"Performance Fish failed to find a fallback method to handle type {
typeof(T).FullName} from mod {typeof(T).Assembly.GetName().Name}");
type = type?.BaseType
?? ThrowHelper.ThrowInvalidOperationException<Type>(
$"Performance Fish failed to find a fallback method to handle type {
typeof(T).FullName} from mod {typeof(T).Assembly.GetName().Name}");
}
if (!isThing)
{
Log.Message($"Found fallback of type {type.FullName}.{
Log.Message($"Found fallback of type {type?.FullName ?? "NULL"}.{
(!isDef ? " This likely means we can safely continue from here." : "")}");
}