From 1d4c7806ffd09cc9ff3372793a60418ee6a869f0 Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Sun, 7 May 2023 14:14:34 +0200 Subject: [PATCH] Fix BlockPosition#offset(double,double,double) (#9190) --- patches/api/0009-Add-Position.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/api/0009-Add-Position.patch b/patches/api/0009-Add-Position.patch index 2300664a0..4d6b5f241 100644 --- a/patches/api/0009-Add-Position.patch +++ b/patches/api/0009-Add-Position.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Add Position diff --git a/src/main/java/io/papermc/paper/math/BlockPosition.java b/src/main/java/io/papermc/paper/math/BlockPosition.java new file mode 100644 -index 0000000000000000000000000000000000000000..f164d32cfbd5bfd84f3067a149d34bb1185a7e00 +index 0000000000000000000000000000000000000000..f0fdabce4af640da2a406412e67020761ded3ac1 --- /dev/null +++ b/src/main/java/io/papermc/paper/math/BlockPosition.java @@ -0,0 +1,98 @@ @@ -64,7 +64,7 @@ index 0000000000000000000000000000000000000000..f164d32cfbd5bfd84f3067a149d34bb1 + + @Override + default @NotNull FinePosition offset(double x, double y, double z) { -+ return new FinePositionImpl(this.blockX() + z, this.blockY() + y, this.blockZ() + z); ++ return new FinePositionImpl(this.blockX() + x, this.blockY() + y, this.blockZ() + z); + } + + /**