Skip to content

Commit

Permalink
Add missing parts for 1dc7967
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkoishi committed Jan 7, 2025
1 parent 9405f5c commit e796873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Core/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public record class MitigationSettings
/// This will try to stop them.
/// </para>
/// </summary>
public Optional<bool> OverflowWorldGenItemID = Optional.Default(false);
public Optional<bool> OverflowWorldGenItemID = Optional.Default(true);

/// <summary>
/// <para>
Expand Down
4 changes: 2 additions & 2 deletions Misc/Hooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Chireiden.TShock.Omni.Misc;

partial class Plugin
{
private readonly Dictionary<string, IDetour> _detours = new();
private readonly Dictionary<string, Hook> _detours = new();
internal void Detour(string name, MethodBase? from, Delegate to)
{
if (from is null)
Expand All @@ -18,7 +18,7 @@ internal void Detour(string name, MethodBase? from, Delegate to)
}
}

private readonly Dictionary<string, IDetour> _manipulators = new();
private readonly Dictionary<string, ILHook> _manipulators = new();
internal void ILHook(string name, MethodBase? from, MonoMod.Cil.ILContext.Manipulator to)
{
if (from is null)
Expand Down

0 comments on commit e796873

Please sign in to comment.