aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjarne Koll <[email protected]>2024-06-16 18:04:11 +0200
committerBjarne Koll <[email protected]>2024-06-16 18:04:11 +0200
commitfbc2a55cde3ff9c06f859e7f04544b37e01dbd28 (patch)
tree818dfb89d28e65837964d334cc12d34c1184ba39
parente1c003355296d70ea50e80d1933aba34e00d0763 (diff)
downloadPaper-fbc2a55cde3ff9c06f859e7f04544b37e01dbd28.tar.gz
Paper-fbc2a55cde3ff9c06f859e7f04544b37e01dbd28.zip
Update Wither#canTravelThroughPortals
-rw-r--r--patches/server/0562-Missing-Entity-API.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0562-Missing-Entity-API.patch b/patches/server/0562-Missing-Entity-API.patch
index 1c7bf215a5..610fed7f07 100644
--- a/patches/server/0562-Missing-Entity-API.patch
+++ b/patches/server/0562-Missing-Entity-API.patch
@@ -1367,7 +1367,7 @@ index 794e4fe0a3fbd967f665b2707865c15491370c76..c284eb96a1e330078076cbe61f0f6e2f
public void increaseAnger(Entity entity, int increase) {
Preconditions.checkArgument(entity != null, "Entity cannot be null");
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftWither.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftWither.java
-index 1113533d281ed159bb735040fb1f913482debf3a..955948f6ec096304671a98f7241930fa91565711 100644
+index 1113533d281ed159bb735040fb1f913482debf3a..7881c6253c1d652c0c0d54a9a8accdf0a1ff0f3e 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftWither.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftWither.java
@@ -67,4 +67,36 @@ public class CraftWither extends CraftMonster implements Wither, com.destroystok
@@ -1393,7 +1393,7 @@ index 1113533d281ed159bb735040fb1f913482debf3a..955948f6ec096304671a98f7241930fa
+
+ @Override
+ public boolean canTravelThroughPortals() {
-+ return getHandle().canChangeDimensions(null, null); // Only used by the enderpearl... right now
++ return getHandle().canUsePortal(false);
+ }
+
+ @Override