mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 12:39:51 +00:00
ITEM
This commit is contained in:
parent
1db3edb0cc
commit
a6f61b873f
@ -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>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user