Guest User

Untitled

a guest
Jan 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public void HandlePacket(Packet230ModLoader packet) {
  2. if (packet.packetType == 65535) {
  3. if (packet.dataString.length == 3
  4. && "getUniqueEntityID"
  5. .equalsIgnoreCase(packet.dataString[0])) {
  6. List mods = ModLoaderSp.getLoadedMods();
  7. for (Object modObj : mods) {
  8. if (modObj instanceof BaseModMp) {
  9. BaseModMp mod = (BaseModMp) modObj;
  10. mod.class.getSimpleName();1
  11. if (packet.dataString[1].equalsIgnoreCase(mod.class
  12. .getSimpleName())) {
  13. ModLoaderMp.RegisterEntityID(mod.class,
  14. packet.dataString[2], packet.dataInt[0]);
  15. }
  16. }
  17. }
  18. }
  19. }
  20.  
  21. }
Add Comment
Please, Sign In to add comment