akarnokd / ThePlanetCrafterMods

BepInEx+Harmony mods for the Unity/Steam game The Planet Crafter
Apache License 2.0
44 stars 29 forks source link

Crash MP VegetableGrower #50

Closed akarnokd closed 1 year ago

akarnokd commented 1 year ago
NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.get_transform(UnityEngine.GameObject)
  at (wrapper dynamic-method) SpaceCraft.MachineGrower.DMD<SpaceCraft.MachineGrower::InstantiatedGameObjectFromInventory>(SpaceCraft.MachineGrower,UnityEngine.Vector3)
  at SpaceCraft.MachineGrower.OnInventoryModified (SpaceCraft.WorldObject _worldObjectModified, System.Boolean _added) [0x0004f] in <d7bd4da685134efba8f85b29870a50c9>:0 
  at SpaceCraft.Inventory.PropagateModification (SpaceCraft.WorldObject _worldObjectModified, System.Boolean _added) [0x00008] in <d7bd4da685134efba8f85b29870a50c9>:0 
  at (wrapper dynamic-method) SpaceCraft.Inventory.DMD<SpaceCraft.Inventory::AddItem>(SpaceCraft.Inventory,SpaceCraft.WorldObject)
  at FeatMultiplayer.Plugin.MachineGrower_OnVegetableGrabed_Host (SpaceCraft.MachineGrower machineGrower, SpaceCraft.WorldObject vegetableWo) [0x00083] in <30b3e3cc743c490897603d1b58e67b90>:0 
  at FeatMultiplayer.Plugin+<>c__DisplayClass360_0.<MachineGrower_HandleAlreadyGrownObject>b__1 (SpaceCraft.WorldObject wo) [0x00000] in <30b3e3cc743c490897603d1b58e67b90>:0 
  at SpaceCraft.ActionGrabable.OnDestroy () [0x00017] in <d7bd4da685134efba8f85b29870a50c9>:0 

and

at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at FeatMultiplayer.Plugin.MachineGrower_OnVegetableGrabed_Host (SpaceCraft.MachineGrower machineGrower, SpaceCraft.WorldObject vegetableWo) [0x00000] in <30b3e3cc743c490897603d1b58e67b90>:0 
  at FeatMultiplayer.Plugin+<>c__DisplayClass360_0.<MachineGrower_HandleAlreadyGrownObject>b__1 (SpaceCraft.WorldObject wo) [0x00000] in <30b3e3cc743c490897603d1b58e67b90>:0 
  at SpaceCraft.ActionGrabable.OnDestroy () [0x00000] in <d7bd4da685134efba8f85b29870a50c9>:0 
akarnokd commented 1 year ago

Fixed in Multiplayer 0.2.0.43 & Unofficial Patches 1.0.0.16