mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 12:08:52 +00:00
remove funny null check thats impossible
This commit is contained in:
parent
01a1b1235d
commit
26a6b06b8a
@ -168,7 +168,7 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
|
||||
var dreamLanternItem = QSBWorldSync.GetWorldObjects<QSBDreamLanternItem>().First(x =>
|
||||
x.AttachedObject._lanternType == DreamLanternType.Functioning &&
|
||||
QSBPlayerManager.PlayerList.All(y => y.HeldItem != x) &&
|
||||
(!x.AttachedObject.GetLanternController()?.IsLit() ?? false)
|
||||
!x.AttachedObject.GetLanternController().IsLit()
|
||||
).AttachedObject;
|
||||
Locator.GetToolModeSwapper().GetItemCarryTool().PickUpItemInstantly(dreamLanternItem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user