Crosshairs error on wakeup, and does not remember players' setting

  • Describe your problem (simple and short)
The crosshairs plugin does not remember what crosshair someone had activated.

It also causes an error in console:
Code:
Failed to call hook 'OnPlayerSleepEnded' on plugin 'Crosshair v1.0.2' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at Oxide.Plugins.Crosshair.OnPlayerSleepEnded (BasePlayer player) [0x0001b] in <d43508dd65664e80b5c175811aa89ee7>:0
  at Oxide.Plugins.Crosshair.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00171] in <d43508dd65664e80b5c175811aa89ee7>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

  • Plugin version
Most recent update from may 13, 2020
 
Top