abluescarab / tModLoader-WingSlot

This mod adds a dedicated wing slot to the inventory.
GNU General Public License v3.0
16 stars 9 forks source link

Dedicated server crash when wings are active in wingsolt. #52

Open ghost opened 2 years ago

ghost commented 2 years ago

Reporting an issue with the WingSlot mod.

On equipping wings in the wingslots : Dedicated server crashes instantly. No idea if this is because I have too many mods installed. However, the same issue did not occur on Steam P2P multiplayer.

[14:21:55.205] [Main Thread/WARN] [tML]: Silently Caught Exception: 
System.Collections.Generic.KeyNotFoundException: Instance of 'PlayerTweaks' does not exist on the current player.
   at Terraria.Player.GetModPlayer[T](T baseInstance) in tModLoader\Terraria\Player.TML.cs:line 39
   at Radiance.PlayerTweaks.GetWingStats(orig_GetWingStats orig, Player self, Int32 wingID) in Radiance\PlayerTweaks.cs:line 180
   at Terraria.Player.ApplyEquipFunctional(Item currentItem, Boolean hideVisual) in tModLoader\Terraria\Player.cs:line 11132
   at Terraria.ModLoader.ModAccessorySlot.ApplyEquipEffects() in tModLoader\Terraria\ModLoader\ModAccessorySlot.cs:line 81
   at Terraria.ModLoader.Default.ModAccessorySlotPlayer.UpdateEquips() in tModLoader\Terraria\ModLoader\Default\ModAccessorySlotPlayer.cs:line 143
   at Terraria.ModLoader.PlayerLoader.UpdateEquips(Player player) in tModLoader\Terraria\ModLoader\PlayerLoader.cs:line 219
   at Terraria.Player.UpdateEquips(Int32 i) in tModLoader\Terraria\Player.cs:line 10057
   at DMD<Terraria.Player::Update>(Player this, Int32 i)
   at DMD<Terraria.Main::DoUpdateInWorld>(Main this, Stopwatch sw)
   at Terraria.Main.DoUpdate(GameTime& gameTime)
   at Terraria.Main.Update(GameTime gameTime)
   at DMD<Terraria.Main::DedServ_PostModLoad>(Main this, Boolean& reloadMods)
   at Terraria.Main.DedServ()
   at Terraria.Program.LaunchGame_(Boolean isServer)
   at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
   at MonoLaunch.<>c__DisplayClass1_0.<Main>b__0()
   at MonoLaunch.Main(String[] args)