Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void HandlePacket(Packet230ModLoader packet) {
- if (packet.packetType == 65535) {
- if (packet.dataString.length == 3
- && "getUniqueEntityID"
- .equalsIgnoreCase(packet.dataString[0])) {
- List mods = ModLoaderSp.getLoadedMods();
- for (Object modObj : mods) {
- if (modObj instanceof BaseModMp) {
- BaseModMp mod = (BaseModMp) modObj;
- mod.class.getSimpleName();1
- if (packet.dataString[1].equalsIgnoreCase(mod.class
- .getSimpleName())) {
- ModLoaderMp.RegisterEntityID(mod.class,
- packet.dataString[2], packet.dataInt[0]);
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment