Advertisement
yugecin

HerpDerp

Aug 5th, 2012
734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. if(net.minecraft.yugecin.Main.herp){
  2. net.minecraft.yugecin.Main.herptimer++;
  3. if(net.minecraft.yugecin.Main.herptimer >= 3){
  4. if(net.minecraft.yugecin.Main.herp) sendQueue.addToSendQueue(new Packet12PlayerLook((0 + (int)(Math.random()*100000))/100, (0 + (int)(Math.random()*100000))/100, onGround));
  5. if(0 + (int)(Math.random()*3) == 2){
  6. sendQueue.addToSendQueue(new Packet18Animation(this, 1));
  7. }
  8. net.minecraft.yugecin.Main.herptimer = 0;
  9. }
  10. }
  11.  
  12.  
  13. //############################
  14. Find& replace where necessary
  15.  
  16.  
  17. if (ridingEntity != null)
  18. {
  19. if (flag3)
  20. {
  21. sendQueue.addToSendQueue(new Packet11PlayerPosition(motionX, -999D, -999D, motionZ, onGround));
  22. }
  23. else
  24. {
  25. sendQueue.addToSendQueue(new Packet13PlayerLookMove(motionX, -999D, -999D, motionZ, rotationYaw, rotationPitch, onGround));
  26. }
  27.  
  28. flag2 = false;
  29. }
  30. else if (flag2 && flag3)
  31. {
  32. sendQueue.addToSendQueue(new Packet13PlayerLookMove(posX, boundingBox.minY, posY, posZ, rotationYaw, net.minecraft.yugecin.Main.derp ? 540 : rotationPitch, onGround));
  33. timeSinceMoved = 0;
  34. }
  35. else if (flag2)
  36. {
  37. sendQueue.addToSendQueue(new Packet11PlayerPosition(posX, boundingBox.minY, posY, posZ, onGround));
  38. timeSinceMoved = 0;
  39. }
  40. else if (flag3)
  41. {
  42. sendQueue.addToSendQueue(new Packet12PlayerLook(rotationYaw, net.minecraft.yugecin.Main.derp ? 540 : rotationPitch, onGround));
  43. timeSinceMoved = 0;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement