From 579a38d3661a1d7b936c7a173fc997a4340acef6 Mon Sep 17 00:00:00 2001 From: parly Date: Mon, 16 Sep 2019 22:45:32 +0900 Subject: [PATCH] Format code --- .../shared/turtle/core/TurtlePlaceCommand.java | 3 ++- .../computercraft/shared/turtle/core/TurtlePlayer.java | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java b/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java index bafcddfb2..984595429 100644 --- a/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java +++ b/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlaceCommand.java @@ -321,7 +321,8 @@ public class TurtlePlaceCommand implements ITurtleCommand boolean placed = false; BlockEntity existingTile = turtle.getWorld().getBlockEntity( position ); - if( placementContext.canPlace() ) { + if( placementContext.canPlace() ) + { if( stackCopy.useOnBlock( context ) == ActionResult.SUCCESS ) { placed = true; diff --git a/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java b/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java index 865dd2303..28f053a21 100644 --- a/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java +++ b/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java @@ -113,10 +113,11 @@ public final class TurtlePlayer extends FakePlayer } @Override - public Vec3d getCameraPosVec(float float_1) { - y-= getStandingEyeHeight(); + public Vec3d getCameraPosVec( float float_1 ) + { + y -= getStandingEyeHeight(); Vec3d r = super.getCameraPosVec( float_1 ); - y+= getStandingEyeHeight(); + y += getStandingEyeHeight(); return r; } }