1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-30 17:17:55 +00:00

Fix turtle place bucket in the wrong block

This commit is contained in:
svitoos
2019-09-14 02:24:11 +03:00
committed by parly
parent 2f66792a0d
commit 799bb77847

View File

@@ -16,6 +16,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
@@ -110,4 +111,12 @@ public final class TurtlePlayer extends FakePlayer
inventory.markDirty();
return results;
}
@Override
public Vec3d getCameraPosVec(float float_1) {
y-=getStandingEyeHeight();
Vec3d r = super.getCameraPosVec(float_1);
y+=getStandingEyeHeight();
return r;
}
}