V1kingGit / SpaceStationManager_Public

0 stars 0 forks source link

DevInspector dead Item reference #22

Closed V1kingGit closed 3 years ago

V1kingGit commented 3 years ago

Observed in botany on retrieval of seeds packet from container.

MissingReferenceException: The object of type 'Item' has been destroyed but you are still trying to access it.

V1kingGit commented 3 years ago

Actually happens during insertion of produce. The item reference still exists in botany when picked up.

V1kingGit commented 3 years ago

Split item overtook the tile's reference, producing error when other item gets picked up since the reference is still present in region (atleast dev inspector). Fixed by making splitted items not use SetItem on tile on Start, since Split never gets used on something left on floor anyway.