Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public void onUpdate()
  2. {
  3. UpdateEvent updateEvent = new UpdateEvent();
  4. EventManager.call((Event)updateEvent);
  5. if (this.worldObj.isBlockLoaded(new BlockPos(this.posX, 0.0D, this.posZ)))
  6. {
  7. super.onUpdate();
  8.  
  9. if (this.isRiding())
  10. {
  11. this.sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(this.rotationYaw, this.rotationPitch, this.onGround));
  12. this.sendQueue.addToSendQueue(new C0CPacketInput(this.moveStrafing, this.moveForward, this.movementInput.jump, this.movementInput.sneak));
  13. }
  14. else
  15. {
  16. this.func_175161_p();
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement