private void UpdateLightSources() { var isPlaced = (Game1.currentLocation as DecoratableLocation)?.furniture.Contains(this) ?? false; foreach (var kv in LightSources.ToList()) { if (ItemProvider.Contains(kv.Key) && isPlaced && GlowConfig.ShowLights) { Game1.currentLightSources.Add(kv.Value); } else { LightSources.Remove(kv.Key); Game1.currentLightSources.Remove(kv.Value); } } }