diff options
Diffstat (limited to 'patches/api/0488-adapt-to-Position-change.patch')
-rw-r--r-- | patches/api/0488-adapt-to-Position-change.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/api/0488-adapt-to-Position-change.patch b/patches/api/0488-adapt-to-Position-change.patch new file mode 100644 index 0000000000..bb83651f97 --- /dev/null +++ b/patches/api/0488-adapt-to-Position-change.patch @@ -0,0 +1,33 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jake Potrebic <[email protected]> +Date: Thu, 21 Dec 2023 19:11:23 -0800 +Subject: [PATCH] adapt to Position change + +will be squashed into original patches + +diff --git a/src/main/java/org/bukkit/RegionAccessor.java b/src/main/java/org/bukkit/RegionAccessor.java +index eb33e8e671972aa308ad75a7ce9aa9ac526f470f..292f40d4ab849f786d9034dd4d8e4f829e439f97 100644 +--- a/src/main/java/org/bukkit/RegionAccessor.java ++++ b/src/main/java/org/bukkit/RegionAccessor.java +@@ -133,7 +133,7 @@ public interface RegionAccessor extends Keyed { // Paper + */ + @NotNull + default io.papermc.paper.block.fluid.FluidData getFluidData(@NotNull Location location) { +- return getFluidData(location.blockX(), location.blockY(), location.blockZ()); ++ return getFluidData(location.getBlockX(), location.getBlockY(), location.getBlockZ()); + } + // Paper end + +diff --git a/src/main/java/org/bukkit/block/Sign.java b/src/main/java/org/bukkit/block/Sign.java +index 340e3adcc57227f2e570826681ea81b9159805de..47d89b1fe4cc9cb2720d0a3572320e08e8ca5aba 100644 +--- a/src/main/java/org/bukkit/block/Sign.java ++++ b/src/main/java/org/bukkit/block/Sign.java +@@ -214,7 +214,7 @@ public interface Sign extends TileState, Colorable { + * @return the side it is facing + */ + default @NotNull Side getInteractableSideFor(org.bukkit.entity.@NotNull Entity entity) { +- return this.getInteractableSideFor(entity.getLocation()); ++ return this.getInteractableSideFor(entity.getLocation().asPosition()); + } + + /** |