k0rd / Custom-Monsters-Plugin--Tshock-

Server Side Custom Monsters for Terraria
3 stars 1 forks source link

[Critical] Crash with Custom Monsters #24

Open Pychnight opened 11 years ago

Pychnight commented 11 years ago

System.NullReferenceException: Object reference not set to an instance of an object. at CustomMonsters.CustomMonstersPlugin.b__50(CustomMonsterType monstertype) at System.Collections.Generic.List1.FindAll(Predicate1 match) at CustomMonsters.CustomMonstersPlugin.ReplaceMonsters() at CustomMonsters.CustomMonstersPlugin.OnUpdate() at System.Action.Invoke() at Hooks.GameHooks.OnUpdate(Boolean pre) at Terraria.Main.DedServ() at Terraria.ProgramServer.Main(String[] args)

This crash is semi-rare, what replace monsters does is replace the existing monster but if you spawn too many custom monsters at one time this issue is more common