remove funny null check thats impossible

This commit is contained in:
JohnCorby 2022-10-05 16:53:34 -07:00
parent 01a1b1235d
commit 26a6b06b8a

View File

@ -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);
}