Skip to content

[BUG] error on vollatile gel #1063

@CyniBot

Description

@CyniBot

BUG可复现 | Bug is reproducible

  • 是 | Yes

插件最新 | Plugin is up-to-date

  • 是 | Yes

插件名字 | Plugin Name

Challenger

TShock版本 | TShock Version

5.2.3

系统 | System

Windows

发生了什么? | What happened?

[Server API] Warning Plugin "Challenger" has had an unhandled exception thrown by one of its NpcStrike handlers:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Challenger.Challenger.VolatileGelatin(NpcStrikeEventArgs args) in /home/runner/work/TShockPlugin/TShockPlugin/src/Challenger/Challenger/Challenger.cs:line 1221
at Challenger.Challenger.OnNpcStrike(NpcStrikeEventArgs args) in /home/runner/work/TShockPlugin/TShockPlugin/src/Challenger/Challenger/Challenger.cs:line 1679
at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args) in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/HandlerCollection.cs:line 109

如何复现 | How to reproduce

hit npcs

期望的结果? | Expected result?

to not give a eror

文本日志 | Text log

[Server API] Warning Plugin "Challenger" has had an unhandled exception thrown by one of its NpcStrike handlers: 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Challenger.Challenger.VolatileGelatin(NpcStrikeEventArgs args) in /home/runner/work/TShockPlugin/TShockPlugin/src/Challenger/Challenger/Challenger.cs:line 1221
   at Challenger.Challenger.OnNpcStrike(NpcStrikeEventArgs args) in /home/runner/work/TShockPlugin/TShockPlugin/src/Challenger/Challenger/Challenger.cs:line 1679
   at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args) in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/HandlerCollection.cs:line 109

控制台日志 | Console log

[Server API] Warning Plugin "Challenger" has had an unhandled exception thrown by one of its NpcStrike handlers: 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Challenger.Challenger.VolatileGelatin(NpcStrikeEventArgs args) in /home/runner/work/TShockPlugin/TShockPlugin/src/Challenger/Challenger/Challenger.cs:line 1221
   at Challenger.Challenger.OnNpcStrike(NpcStrikeEventArgs args) in /home/runner/work/TShockPlugin/TShockPlugin/src/Challenger/Challenger/Challenger.cs:line 1679
   at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args) in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/HandlerCollection.cs:line 109

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions