aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0488-adapt-to-Position-change.patch
blob: bb83651f97fcee8656bc0e93e8dc89c586572afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
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());
     }
 
     /**