PointLife / PointLife-Issues

Issue Tracker for PointLife Server
0 stars 0 forks source link

[BP-BUG] /resetfire only clears 1 fire then errors. #9

Closed PLASMAchicken closed 1 year ago

PLASMAchicken commented 1 year ago
[SVR] Error on packet ChatGlobal: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
  at BPPointlife.Commands.ClearFire.OnCommandInvoke (BrokeProtocol.Entities.ShPlayer player) [0x00042] in <6c47d6d606b6465b9adde17336d3f67a>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
  at BrokeProtocol.API.Command.Invoke (BrokeProtocol.Entities.ShPlayer player, System.String[] args, System.Int32 inputCount) [0x00043] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 
  at BrokeProtocol.API.CommandHandler.OnEvent (BrokeProtocol.Entities.ShPlayer player, System.String message) [0x000b3] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 
  at BPEssentials.ChatHandlers.GlobalChat.OnEvent (BrokeProtocol.Entities.ShPlayer player, System.String message) [0x0000f] in <a6eaa00df2d14c9588062ce63feb4f90>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <1c2f3ebc0f564fcdbe2213fe0bae3193>:0 
  at BrokeProtocol.API.DelegateContainer.Execute (System.Object[] args) [0x0008c] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 
  at (wrapper dynamic-method) BrokeProtocol.API.SourceHandler.BrokeProtocol.API.SourceHandler.Exec_Patch1(int,object[])
  at BrokeProtocol.API.PlayerEvents.ChatGlobal (BrokeProtocol.Entities.ShPlayer player, System.String message) [0x00000] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 
  at BrokeProtocol.Entities.SvPlayer.SvChatGlobal (System.String message) [0x00000] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 
  at BrokeProtocol.Managers.SvManager+<>c.<StartServer>b__94_121 (BrokeProtocol.Entities.ShPlayer sender) [0x00010] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 
  at BrokeProtocol.Managers.SvManager+<ServerLoop>d__125.MoveNext () [0x0054f] in <cb6525dfda0b4c56be19c7bc3c30a4d1>:0 

Broken by BP Update https://github.com/PointLife/BPPointLifeCustoMContent/blame/master/src/BPPointlife/Commands/ClearFire.cs