SHOW:
|
|
- or go back to the newest paste.
1 | public class MyMod : Mod | |
2 | { | |
3 | // To use NetEasy, make sure you do these two things: | |
4 | ||
5 | // Make sure to load your mod... | |
6 | - | public override void Load() |
6 | + | public override void PostSetupContent() |
7 | { | |
8 | - | NetEasy.NetEasy.Load(this); |
8 | + | NetEasy.NetEasy.Register(this); |
9 | } | |
10 | ||
11 | // ...And to handle any incoming packets. | |
12 | public override void HandlePacket(BinaryReader reader, int whoAmI) | |
13 | { | |
14 | NetEasy.NetEasy.HandleModule(reader, whoAmI); | |
15 | } | |
16 | } |