From 235b36bfb8b3e2e3a2096e6fecbcf29cdd1210f0 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 28 Dec 2024 20:27:56 +1000 Subject: [PATCH] WIP avoid SetDefaults_Int32_Boolean_ItemVariant for TML --- OTAPI.Server.Launcher/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OTAPI.Server.Launcher/Program.cs b/OTAPI.Server.Launcher/Program.cs index a6d76ad5..01c5a5f7 100644 --- a/OTAPI.Server.Launcher/Program.cs +++ b/OTAPI.Server.Launcher/Program.cs @@ -101,7 +101,9 @@ void Print(TSender sender, TArgs args) HookEvents.Terraria.Main.checkXMas += Print; HookEvents.Terraria.Main.checkHalloween += Print; HookEvents.Terraria.Main.startDedInput += Print; +#if !TML HookEvents.Terraria.Item.SetDefaults_Int32_Boolean_ItemVariant += Print; +#endif HookEvents.Terraria.Item.netDefaults += Print; HookEvents.Terraria.NetMessage.greetPlayer += Print; HookEvents.Terraria.Netplay.StartServer += Print;