Created
June 25, 2011 18:47
-
-
Save BlockAfterBlock/1046765 to your computer and use it in GitHub Desktop.
Player Control
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public boolean interact(EntityPlayer entityplayer) | |
| { | |
| if(getSaddled() && !worldObj.multiplayerWorld && (riddenByEntity == null || riddenByEntity == entityplayer)) | |
| { | |
| entityplayer.mountEntity(this); | |
| entityplayer.motionX = this.motionX; | |
| entityplayer.motionY = this.motionY; | |
| entityplayer.isJumping = this.isJumping; | |
| return true; | |
| } else | |
| { | |
| return false; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment