diff options
author | Lulu13022002 <[email protected]> | 2023-06-11 03:01:10 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-10 18:01:10 -0700 |
commit | e2e874f5491b76606b50e319d0bdfbb17fb80466 (patch) | |
tree | 9166bc4b309d1861fb22accd6b1b5162a6394e3f | |
parent | bc3496ea58f8f66c8d0af8ceff317d28f18ab0f6 (diff) | |
download | Paper-e2e874f5491b76606b50e319d0bdfbb17fb80466.tar.gz Paper-e2e874f5491b76606b50e319d0bdfbb17fb80466.zip |
Add back the source uuid on exp orb for animals breeding (#9289)
-rw-r--r-- | patches/server/0127-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0127-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch b/patches/server/0127-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch index c4db45bd11..c1fa57b321 100644 --- a/patches/server/0127-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch +++ b/patches/server/0127-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch @@ -147,7 +147,7 @@ index 323b3a561060eacaad37832f44d0cdb9e4a1a2dc..565d0349328b7ae5fcbdf1682dcedff9 } // CraftBukkit end diff --git a/src/main/java/net/minecraft/world/entity/animal/Animal.java b/src/main/java/net/minecraft/world/entity/animal/Animal.java -index 18f560b8ea74b6b072264754708e9f67a178f99c..7ec2ce1c9aa9a78b03770adc0c2faa28cdbe60f2 100644 +index 18f560b8ea74b6b072264754708e9f67a178f99c..1430f598073aab7387cf5985a7b3a84d3f53548c 100644 --- a/src/main/java/net/minecraft/world/entity/animal/Animal.java +++ b/src/main/java/net/minecraft/world/entity/animal/Animal.java @@ -258,12 +258,14 @@ public abstract class Animal extends AgeableMob { @@ -174,7 +174,7 @@ index 18f560b8ea74b6b072264754708e9f67a178f99c..7ec2ce1c9aa9a78b03770adc0c2faa28 // CraftBukkit start - use event experience if (experience > 0) { - worldserver.addFreshEntity(new ExperienceOrb(worldserver, this.getX(), this.getY(), this.getZ(), experience)); -+ worldserver.addFreshEntity(new ExperienceOrb(worldserver, this.getX(), this.getY(), this.getZ(), experience, org.bukkit.entity.ExperienceOrb.SpawnReason.BREED, entityplayer)); // Paper ++ worldserver.addFreshEntity(new ExperienceOrb(worldserver, this.getX(), this.getY(), this.getZ(), experience, org.bukkit.entity.ExperienceOrb.SpawnReason.BREED, entityplayer, entityageable)); // Paper } // CraftBukkit end } |