Open Dsnherdude066 opened 5 months ago
they wont go way and everytime i pick up a item it creates 2 of them
018e6862-9d48-392d-3495-33bf740faa07
thunder config
Hey @Dsnherdude066
These ghosting ones have always been the bane of us but we have not seen it happen on our side for a while - so I thought it might be a mod conflict somewhere...
I loaded up your code in thunderstore and it seems fine - so I was wondering if there's something you did when this happened or is it as soon as you load?
I also encountered such a bug. I encountered the problem after picking up the mod items. Not only will it occupy one more inventory, but it will also make my movement speed particularly fast.
I've also had this happen, though notably only when hosting. Other players that joined with the same mods did not have this issue. I can get it to reliably happen with the Utility Belt item from LethalThings - picking up anything after grabbing the belt causes it to visually duplicate to one of the 4 default slots and one of the added slots from the belt, but I've also had it happen without the belt involved.
[Error : Unity Log] NullReferenceException Stack trace: QualityCompany.Modules.Inventory.InventoryBaseUI.Hide (System.Int32 currentItemSlotIndex) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0022) QualityCompany.Modules.Inventory.ScrapValueModule.Hide (System.Int32 currentItemSlotIndex) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0000) QualityCompany.Modules.Inventory.InventoryBaseUI.OnUpdate (GameNetcodeStuff.PlayerControllerB instance) (at <022eacd116e64c25b33040d28bcbb18c>:IL_002A) QualityCompany.Events.GameEvents.OnPlayerDiscardHeldObject (GameNetcodeStuff.PlayerControllerB instance) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0018) QualityCompany.Patch.PlayerControllerBPatch.DiscardHeldObjectPatch (GameNetcodeStuff.PlayerControllerB __instance) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0000) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD(GameNetcodeStuff.PlayerControllerB,bool,Unity.Netcode.NetworkObject,UnityEngine.Vector3,bool)
GameNetcodeStuff.PlayerControllerB+d__355.MoveNext () (at :IL_0039)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :IL_0026)
Theres these weird "ghost" items![image](https://github.com/remiX-/QualityCompany/assets/126821288/f91d6700-b395-4ab0-a405-21e6b323b62d)