Skip to content

Right Clicked Vanity Slot 1 and an exception happened #44

@cheeeeeeeeeen

Description

@cheeeeeeeeeen
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.

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