aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch')
-rw-r--r--patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch b/patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch
index cbc3cf3058..93cff1f7ad 100644
--- a/patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch
+++ b/patches/server/0544-Add-dropLeash-variable-to-EntityUnleashEvent.patch
@@ -5,10 +5,10 @@ Subject: [PATCH] Add dropLeash variable to EntityUnleashEvent
diff --git a/src/main/java/net/minecraft/world/entity/Mob.java b/src/main/java/net/minecraft/world/entity/Mob.java
-index 7bbb68bf06e04b58b6c4fa546fe919e387e00b27..c17ea8bdbbd5581b4a2728564fad72f6bb518f66 100644
+index 20007742739eb57fd36865526aa79ccebfca0b99..2e8b1d7b81e212a7b06f4844d0633241dc4b77bf 100644
--- a/src/main/java/net/minecraft/world/entity/Mob.java
+++ b/src/main/java/net/minecraft/world/entity/Mob.java
-@@ -1306,12 +1306,15 @@ public abstract class Mob extends LivingEntity implements Targeting {
+@@ -1304,12 +1304,15 @@ public abstract class Mob extends LivingEntity implements Targeting {
return InteractionResult.PASS;
} else if (this.getLeashHolder() == player) {
// CraftBukkit start - fire PlayerUnleashEntityEvent
@@ -26,7 +26,7 @@ index 7bbb68bf06e04b58b6c4fa546fe919e387e00b27..c17ea8bdbbd5581b4a2728564fad72f6
this.gameEvent(GameEvent.ENTITY_INTERACT, player);
return InteractionResult.sidedSuccess(this.level().isClientSide);
} else {
-@@ -1479,8 +1482,11 @@ public abstract class Mob extends LivingEntity implements Targeting {
+@@ -1477,8 +1480,11 @@ public abstract class Mob extends LivingEntity implements Targeting {
if (this.leashHolder != null) {
if (!this.isAlive() || !this.leashHolder.isAlive()) {
@@ -40,7 +40,7 @@ index 7bbb68bf06e04b58b6c4fa546fe919e387e00b27..c17ea8bdbbd5581b4a2728564fad72f6
}
}
-@@ -1543,8 +1549,11 @@ public abstract class Mob extends LivingEntity implements Targeting {
+@@ -1541,8 +1547,11 @@ public abstract class Mob extends LivingEntity implements Targeting {
boolean flag1 = super.startRiding(entity, force);
if (flag1 && this.isLeashed()) {
@@ -54,7 +54,7 @@ index 7bbb68bf06e04b58b6c4fa546fe919e387e00b27..c17ea8bdbbd5581b4a2728564fad72f6
}
return flag1;
-@@ -1733,8 +1742,11 @@ public abstract class Mob extends LivingEntity implements Targeting {
+@@ -1731,8 +1740,11 @@ public abstract class Mob extends LivingEntity implements Targeting {
@Override
protected void removeAfterChangingDimensions() {
super.removeAfterChangingDimensions();