Switched Initialization for PacketDecoder into static constructor to dummyproof the class
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3208 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenMetaverse.Packets
|
||||
private static Dictionary<string, List<CustomPacketDecoder>> Callbacks = new Dictionary<string, List<CustomPacketDecoder>>();
|
||||
|
||||
|
||||
public static void InitializeDecoder()
|
||||
static PacketDecoder()
|
||||
{
|
||||
AddCallback("Color", DecodeColorField);
|
||||
AddCallback("TextColor", DecodeColorField);
|
||||
|
||||
Reference in New Issue
Block a user