Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right Clicked Vanity Slot 1 and an exception happened #44

Open
cheeeeeeeeeen opened this issue Nov 11, 2019 · 0 comments
Open

Right Clicked Vanity Slot 1 and an exception happened #44

cheeeeeeeeeen opened this issue Nov 11, 2019 · 0 comments

Comments

@cheeeeeeeeeen
Copy link

cheeeeeeeeeen commented Nov 11, 2019

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Terraria.ModLoader.GlobalItem.Instance(Item item)
   at Terraria.Item.GetGlobalItem[T]()
   at Loot.ModifierItem.CanEquipAccessory(Item item, Player player, Int32 slot)
   at Terraria.ModLoader.ItemLoader.CanEquipAccessory(Item item, Int32 slot)
   at Terraria.UI.ItemSlot.RightClick(Item[] inv, Int32 context, Int32 slot)
   at Terraria.Main.DrawInventory()
   at Terraria.Main.DrawInterface_27_Inventory()
   at Terraria.Main.<SetupDrawInterfaceLayers>b__1632_23()
   at Terraria.UI.LegacyGameInterfaceLayer.DrawSelf()
   at Terraria.UI.GameInterfaceLayer.Draw()
   at Terraria.Main.DrawInterface(GameTime gameTime)
   at Terraria.Main.DoDraw(GameTime gameTime)
   at Terraria.Main.Draw(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.DrawFrame()
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at Terraria.Program.LaunchGame_()
   at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
   at Terraria.WindowsLaunch.Main(String[] args)

This happened when there is no Item in Vanity Slot 1, but there is an equipped accessory on the right side slot..

If it helps, I happen to do this with the Portable Cement Mixer without extra modifiers.
This also happens with Architect Gizmo Pack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant