3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-14 20:10:05 +01:00

Update Wither#canTravelThroughPortals

Dieser Commit ist enthalten in:
Bjarne Koll 2024-06-16 18:04:11 +02:00
Ursprung e1c0033552
Commit fbc2a55cde
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 27F6CCCF55D2EE62

Datei anzeigen

@ -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