ThinkInvis / RoR2-TinkersSatchel

A mod for Risk of Rain 2.
GNU General Public License v3.0
4 stars 4 forks source link

Issue with Mimic.cs On_InvGiveItemByIndex #36

Closed ghost closed 2 years ago

ghost commented 2 years ago

In LittleGameplayTweaks for Simulacrum Special Boss Special Boss Scaling I add a Inventory to the WavePrefab and then give it the special scaling items.

For some reason this calls your "On_InvGiveItemByIndex" before it's "Awake" function which leads to no "fakeInv" and causes a NullRef.

I add the Inventory and give it an item in the same piece of code, which causes the error. I add a Inventory beforehand and only give the item in that piece of code and it still triggers the error. Somehow the Awake function gets skipped but then why'd the Install function happen before Awake().

I couldn't replicate it with anything Vanilla and I was able to make my own workaround, but probably still better to fix it.