mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 12:08:52 +00:00
Prevent DreamWorld debug warp option stealing a lit lantern
This commit is contained in:
parent
a05a628959
commit
3d4f12997c
@ -167,7 +167,8 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
|
||||
{
|
||||
var dreamLanternItem = QSBWorldSync.GetWorldObjects<QSBDreamLanternItem>().First(x =>
|
||||
x.AttachedObject._lanternType == DreamLanternType.Functioning &&
|
||||
QSBPlayerManager.PlayerList.All(y => y.HeldItem != x)
|
||||
QSBPlayerManager.PlayerList.All(y => y.HeldItem != x) &&
|
||||
(!x.AttachedObject.GetLanternController()?.IsLit() ?? false)
|
||||
).AttachedObject;
|
||||
Locator.GetToolModeSwapper().GetItemCarryTool().PickUpItemInstantly(dreamLanternItem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user