Skip to content

System.InvalidCastException: Unable to cast object of type 'ReLogic.Reflection.IdDictionary' to type 'System.Int16'. #140

@hezuo1hao

Description

@hezuo1hao
System.InvalidCastException: Unable to cast object of type 'ReLogic.Reflection.IdDictionary' to type 'System.Int16'.
   at DragonLens.Content.Tools.Spawners.DustButton.<>c__DisplayClass6_0.<.ctor>b__0(FieldInfo n) in DragonLens\Content\Tools\Spawners\DustSpawner.cs:line 216
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at DragonLens.Content.Tools.Spawners.DustButton..ctor(Dust dust, Browser browser) in DragonLens\Content\Tools\Spawners\DustSpawner.cs:line 216
   at DragonLens.Content.Tools.Spawners.DustBrowser.PopulateGrid(UIGrid grid) in DragonLens\Content\Tools\Spawners\DustSpawner.cs:line 110
   at DragonLens.Content.GUI.Browser.Refresh() in DragonLens\Content\GUI\Browser.cs:line 228
   at DragonLens.Content.Tools.Spawners.BrowserTool`1.OnActivate() in DragonLens\Content\Tools\Spawners\BrowserTool.cs:line 24
   at DragonLens.Content.GUI.ToolButton.SafeClick(UIMouseEvent evt) in DragonLens\Content\GUI\ToolbarElements.cs:line 422
   at Terraria.UI.UserInterface.HandleClick(InputPointerCache cache, GameTime time, Boolean isDown, UIElement mouseElement) in tModLoader\Terraria\UI\UserInterface.cs:line 214
   at Terraria.UI.UserInterface.Update_Inner(GameTime time, UIElement uIElement, Boolean& num) in tModLoader\Terraria\UI\UserInterface.cs:line 176
   at Terraria.UI.UserInterface.Update(GameTime time) in tModLoader\Terraria\UI\UserInterface.cs:line 154
   at DragonLens.Core.Loaders.UILoading.UILoader.UpdateUI(GameTime gameTime) in DragonLens\Core\Loaders\UILoading\UILoader.cs:line 88
   at Terraria.ModLoader.SystemLoader.UpdateUI(GameTime gameTime) in tModLoader\Terraria\ModLoader\SystemLoader.cs:line 269
   at Terraria.Main.UpdateUIStates(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 14930
   at DMD<System.Void Terraria.Main:DoUpdate(Microsoft.Xna.Framework.GameTime&)>(Main this, GameTime& gameTime)
   at DragonLens.Content.Tools.Gameplay.FastForwardSystem.UpdateExtraTimes(orig_DoUpdate orig, Main self, GameTime& gameTime)
   at Hook<System.Void DragonLens.Content.Tools.Gameplay.FastForwardSystem::UpdateExtraTimes(Terraria.On_Main+orig_DoUpdate,Terraria.Main,Microsoft.Xna.Framework.GameTime&)>(Main , GameTime& )
   at SyncProxy<System.Void Terraria.Main:DoUpdate(Microsoft.Xna.Framework.GameTime&)>(Main , GameTime& )
   at Terraria.Main.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.RunLoop()
   at Microsoft.Xna.Framework.Game.Run()
   at Terraria.Program.RunGame()
   at Terraria.Program.LaunchGame_(Boolean isServer)
   at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
   at Terraria.MonoLaunch.Main_End(String[] args)
   at Terraria.MonoLaunch.<>c__DisplayClass1_0.<Main>b__1()
System.InvalidCastException: Unable to cast object of type 'ReLogic.Reflection.IdDictionary' to type 'System.Int16'.
   at Terraria.UI.UserInterface.Update(GameTime time) in tModLoader\Terraria\UI\UserInterface.cs:line 154
   at DragonLens.Core.Loaders.UILoading.UILoader.UpdateUI(GameTime gameTime) in DragonLens\Core\Loaders\UILoading\UILoader.cs:line 88
   at Terraria.ModLoader.SystemLoader.UpdateUI(GameTime gameTime) in tModLoader\Terraria\ModLoader\SystemLoader.cs:line 269
   at Terraria.Main.UpdateUIStates(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 14930
   at DMD<System.Void Terraria.Main:DoUpdate(Microsoft.Xna.Framework.GameTime&)>(Main this, GameTime& gameTime)
   at DragonLens.Content.Tools.Gameplay.FastForwardSystem.UpdateExtraTimes(orig_DoUpdate orig, Main self, GameTime& gameTime)
   at Hook<System.Void DragonLens.Content.Tools.Gameplay.FastForwardSystem::UpdateExtraTimes(Terraria.On_Main+orig_DoUpdate,Terraria.Main,Microsoft.Xna.Framework.GameTime&)>(Main , GameTime& )
   at SyncProxy<System.Void Terraria.Main:DoUpdate(Microsoft.Xna.Framework.GameTime&)>(Main , GameTime& )
   at Terraria.Main.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.RunLoop()
   at Microsoft.Xna.Framework.Game.Run()
   at Terraria.Program.RunGame()
   at Terraria.Program.LaunchGame_(Boolean isServer)
   at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
   at Terraria.MonoLaunch.Main_End(String[] args)
   at Terraria.MonoLaunch.<>c__DisplayClass1_0.<Main>b__1()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions