From e796873b892c58ca6e31aea383b62558aafa61f1 Mon Sep 17 00:00:00 2001 From: SGKoishi Date: Tue, 7 Jan 2025 13:19:49 +0900 Subject: [PATCH] Add missing parts for 1dc79675 --- Core/Config.cs | 2 +- Misc/Hooks.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Config.cs b/Core/Config.cs index ee691db..055bd76 100644 --- a/Core/Config.cs +++ b/Core/Config.cs @@ -675,7 +675,7 @@ public record class MitigationSettings /// This will try to stop them. /// /// - public Optional OverflowWorldGenItemID = Optional.Default(false); + public Optional OverflowWorldGenItemID = Optional.Default(true); /// /// diff --git a/Misc/Hooks.cs b/Misc/Hooks.cs index b95da73..c1db8a7 100644 --- a/Misc/Hooks.cs +++ b/Misc/Hooks.cs @@ -5,7 +5,7 @@ namespace Chireiden.TShock.Omni.Misc; partial class Plugin { - private readonly Dictionary _detours = new(); + private readonly Dictionary _detours = new(); internal void Detour(string name, MethodBase? from, Delegate to) { if (from is null) @@ -18,7 +18,7 @@ internal void Detour(string name, MethodBase? from, Delegate to) } } - private readonly Dictionary _manipulators = new(); + private readonly Dictionary _manipulators = new(); internal void ILHook(string name, MethodBase? from, MonoMod.Cil.ILContext.Manipulator to) { if (from is null)