InvalidOperationException: HashSet have been modified while it was iterated over
System.Collections.Generic.HashSet`1+Enumerator[Oxide.Plugins.NightLantern+LightController].CheckState () System.Collections.Generic.HashSet`1+Enumerator[Oxide.Plugins.NightLantern+LightController].MoveNext () Oxide.Plugins.NightLantern+<ToggleAllLights>c__Iterator1.MoveNext () UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress)
Not sure if this means anything? Plugin seems to be working fine........Just fyi I guess.

NightLantern
Automatically turns ON and OFF lanterns after sunset and sunrise
Total Downloads: 20,603 - First Release: Jun 27, 2015 - Last Update: Jun 11, 2018
- 5/5, 52 likes
-
Tiny bug in the code. line 184 does not have a return value, it should be added right after that line:
return ConsumeType.JackOLantern;
Code:case "jackolantern.angry": return ConsumeType.JackOLantern;
-
@k1lly0u any chance you could add something like '/lantern all' that will turn on everything you have permissions to turn on?
For instance, if I have permissions to turn on all lights automatically and I have no fuel requirements, I'll want to just turn them all on instead of using all commands. In the same way I might want to turn them all off.
Thanks! Great plugin! -
Not getting any errors however firepit and fireplaces do not seem to be operational as they were. No Fuel req is used and everything else is working properly
-
-
here is the error:
01:38 [Error] Failed to call hook 'Unload' on plugin 'NightLantern v2.0.9' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.NightLantern+LightController.ToggleLight (Boolean status) [0x00000] in <filename unknown>:0
at Oxide.Plugins.NightLantern.Unload () [0x00000] in <filename unknown>:0
at Oxide.Plugins.NightLantern.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
01:38 [Info] Unloaded plugin NightLantern v2.0.9 by k1lly0u
01:38 [Info] Loaded plugin NightLantern v2.0.9 by k1lly0u
EDIT: Okay, now it works, just not all lights at the same time. Also when I toggle /lantern global, I get this error in console:
InvalidOperationException: HashSet have been modified while it was iterated over
I cant find the error in the logs, this is from console.
Edit again: The last IOE error was not from toggle /lantern global so I don't know what it's from.Last edited by a moderator: Dec 17, 2017 -
If you are running NoFuelRequirements as well you might need to do the following to get a clean reset:
o.unload NightLantern
o.unload NoFuelRequirements
o.load NoFuelRequirements
o.load NightLantern
That might clear that up for you. -
I wasn't aware nofuelrequirement plugin was a thing. This plugin always worked without it. Is that other plugin now required?
-
NoFuelRequirementsis not require but often used in conjunction with this. Sorry for assuming you had it as well.
Are you running any other mod that might conflict, that affects fuel, lights, etc? -
-
after update plugin is not please update plugin ^ ^
-
you might need to drop the json and do a o.reload NightLantern, edit the json to put back in your config and then once more o.reload NightLantern to pick up your changes.
-
k1lly0u updated NightLantern with a new update entry:
2.0.91
[DOUBLEPOST=1514539448][/DOUBLEPOST] -
So you're saying the one return covers the .angry and .happy? Seemed when I added the guy's fix it started to work before.
I'll try this new version unmodified for now. -
Does not work anymore . There is no error
[DOUBLEPOST=1514542937][/DOUBLEPOST]All lights do not turn on. There is a small problemAttached Files:
-
-
k1lly0u updated NightLantern with a new update entry:
2.0.92
-
Receiving (04:32:39) | ArgumentOutOfRangeException: Argument is out of range.
-
It would be greatly appreciated. -
Is this normal light shift
-
Hi. In the updated version it is possible to set on/off of the grill? In the previous version of the grill does not turn on automatically.