k0rd / Custom-Monsters-Plugin--Tshock-

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

Crash ReplaceMonsters #17

Open Pychnight opened 12 years ago

Pychnight commented 12 years ago

4/3/2012 9:07:47 PM 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)

Olink commented 12 years ago

What exactly does replace monster do? The code i sless than clear

Pychnight commented 12 years ago

it basically Find the monster id you enter then replaces all of the monsters of that type with the Custom monster you designed to replace that monster.

it's works last time, i checked. i have not tested for this crash again yet. I'm unsure if this issue still exists.