aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch')
-rw-r--r--patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch b/patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch
index 3bc8cd9b24..aedb99d8f9 100644
--- a/patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch
+++ b/patches/server/0924-Add-hand-to-fish-event-for-all-player-interactions.patch
@@ -5,10 +5,10 @@ Subject: [PATCH] Add hand to fish event for all player interactions
diff --git a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
-index a9ea83ea03ab23abc1eb463dadcdd742bfa20036..35299affb699d745804a3b60cb78b9323f3e068e 100644
+index e603307871b623ce437f4b1b68ab306fbdd9919d..9962d50ea342cd47428a814519b2d54f547753a4 100644
--- a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
+++ b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
-@@ -476,7 +476,15 @@ public class FishingHook extends Projectile {
+@@ -481,7 +481,15 @@ public class FishingHook extends Projectile {
@Override
public void readAdditionalSaveData(CompoundTag nbt) {}
@@ -24,7 +24,7 @@ index a9ea83ea03ab23abc1eb463dadcdd742bfa20036..35299affb699d745804a3b60cb78b932
net.minecraft.world.entity.player.Player entityhuman = this.getPlayerOwner();
if (!this.level().isClientSide && entityhuman != null && !this.shouldStopFishing(entityhuman)) {
-@@ -484,7 +492,7 @@ public class FishingHook extends Projectile {
+@@ -489,7 +497,7 @@ public class FishingHook extends Projectile {
if (this.hookedIn != null) {
// CraftBukkit start
@@ -33,7 +33,7 @@ index a9ea83ea03ab23abc1eb463dadcdd742bfa20036..35299affb699d745804a3b60cb78b932
this.level().getCraftServer().getPluginManager().callEvent(playerFishEvent);
if (playerFishEvent.isCancelled()) {
-@@ -513,7 +521,7 @@ public class FishingHook extends Projectile {
+@@ -518,7 +526,7 @@ public class FishingHook extends Projectile {
}
// Paper end
// CraftBukkit start
@@ -42,7 +42,7 @@ index a9ea83ea03ab23abc1eb463dadcdd742bfa20036..35299affb699d745804a3b60cb78b932
playerFishEvent.setExpToDrop(this.random.nextInt(6) + 1);
this.level().getCraftServer().getPluginManager().callEvent(playerFishEvent);
-@@ -547,7 +555,7 @@ public class FishingHook extends Projectile {
+@@ -552,7 +560,7 @@ public class FishingHook extends Projectile {
if (this.onGround()) {
// CraftBukkit start
@@ -51,7 +51,7 @@ index a9ea83ea03ab23abc1eb463dadcdd742bfa20036..35299affb699d745804a3b60cb78b932
this.level().getCraftServer().getPluginManager().callEvent(playerFishEvent);
if (playerFishEvent.isCancelled()) {
-@@ -558,7 +566,7 @@ public class FishingHook extends Projectile {
+@@ -563,7 +571,7 @@ public class FishingHook extends Projectile {
}
// CraftBukkit start
if (i == 0) {