1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 16:47:56 +00:00

Format code

This commit is contained in:
parly
2019-09-16 22:45:32 +09:00
parent 0e6797c7da
commit 579a38d366
2 changed files with 6 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;
}
}