This commit is contained in:
JohnCorby 2022-08-29 21:53:24 -07:00
parent 1db3edb0cc
commit a6f61b873f

View File

@ -54,7 +54,8 @@ public class QSBItem<T> : WorldObject<T>, IQSBItem
_lastSector = sector.GetWorldObject<QSBSector>();
}
var socket = _lastParent.GetComponent<OWItemSocket>();
// NH can make item not have parent
var socket = _lastParent?.GetComponent<OWItemSocket>();
if (socket != null)
{
_lastSocket = socket.GetWorldObject<QSBItemSocket>();