Skip to content

Commit

Permalink
Renamed some functions to match Java style formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Rozmir-Rohi committed Sep 3, 2024
1 parent 0e68c12 commit 03a08de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ public void moveEntityWithHeading(float strafe, float forward)
}
if (MoCreatures.isServer() && rand.nextInt(50) == 0)
{
if (getUpsetSound() != null){
if (getUpsetSound() != null)
{
playSound(getUpsetSound(), 1.0F, 1.0F + ((rand.nextFloat() - rand.nextFloat()) * 0.2F));
}
riddenByEntity.motionY += 0.9D;
Expand Down Expand Up @@ -450,7 +451,7 @@ else if ((riddenByEntity != null) && getIsTamed())
limbSwing += limbSwingAmount;
}

protected boolean MoveToNextEntity(Entity entity)
protected boolean moveToNextEntity(Entity entity)
{
if (entity != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ public void updateRiderPosition()
{
if (riddenByEntity == null) { return; }

float size_factor = getMoCAge() * 0.01F;
float sizeFactor = getMoCAge() * 0.01F;

double distance = size_factor / 4.0D;
double distance = sizeFactor / 4.0D;

double newPosX = posX - (distance * Math.cos((MoCTools.realAngle(renderYawOffset - 90F)) / 57.29578F));
double newPosZ = posZ - (distance * Math.sin((MoCTools.realAngle(renderYawOffset - 90F)) / 57.29578F));
Expand Down

0 comments on commit 03a08de

Please sign in to comment.