DreamLanternItem can be null so add ?

This commit is contained in:
JohnCorby 2022-10-06 00:32:19 -07:00
parent 735b375f23
commit 27e05aef5a

View File

@ -15,7 +15,7 @@ internal class SetLitMessage : QSBWorldObjectMessage<QSBDreamLanternController,
// If a lantern is already lit you shouldn't be able to pick it up
if (Data)
{
WorldObject.DreamLanternItem.EnableInteraction(false);
WorldObject.DreamLanternItem?.EnableInteraction(false);
}
}
}