diff --git a/TerrariaServerAPI/TerrariaApi.Server/Hooking/WorldHooks.cs b/TerrariaServerAPI/TerrariaApi.Server/Hooking/WorldHooks.cs index 46e894d4..30268b01 100644 --- a/TerrariaServerAPI/TerrariaApi.Server/Hooking/WorldHooks.cs +++ b/TerrariaServerAPI/TerrariaApi.Server/Hooking/WorldHooks.cs @@ -15,7 +15,7 @@ public static void AttachTo(HookManager hookManager) { _hookManager = hookManager; - HookEvents.Terraria.IO.WorldFile.SaveWorld_Boolean_Boolean += WorldFile_SaveWorld; + HookEvents.Terraria.IO.WorldFile._SaveWorld += WorldFile_SaveWorld; HookEvents.Terraria.WorldGen.StartHardmode += WorldGen_StartHardmode; HookEvents.Terraria.WorldGen.SpreadGrass += WorldGen_SpreadGrass; HookEvents.Terraria.Main.checkXMas += Main_checkXMas; @@ -48,7 +48,7 @@ static void OnPressurePlate(object sender, Hooks.Collision.PressurePlateEventArg } } - static void WorldFile_SaveWorld(object? sender, HookEvents.Terraria.IO.WorldFile.SaveWorld_Boolean_BooleanEventArgs args) + static void WorldFile_SaveWorld(object? sender, HookEvents.Terraria.IO.WorldFile._SaveWorldEventArgs args) { if (!args.ContinueExecution) return; if (_hookManager.InvokeWorldSave(args.resetTime)) diff --git a/TerrariaServerAPI/TerrariaServerAPI.csproj b/TerrariaServerAPI/TerrariaServerAPI.csproj index 66c76c30..59e57160 100644 --- a/TerrariaServerAPI/TerrariaServerAPI.csproj +++ b/TerrariaServerAPI/TerrariaServerAPI.csproj @@ -23,6 +23,6 @@ - +