From aa949f7a32bebd2cb60e7d13e32784e252ae08e0 Mon Sep 17 00:00:00 2001 From: Pedro <3602279+Doc94@users.noreply.github.com> Date: Wed, 20 Jul 2022 12:18:28 -0400 Subject: [PATCH] Add SpawnReason to Tadpoles spawned by Frogspawn (#8165) --- ...son-to-Tadpoles-spawned-by-Frogspawn.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/server/Add-SpawnReason-to-Tadpoles-spawned-by-Frogspawn.patch diff --git a/patches/server/Add-SpawnReason-to-Tadpoles-spawned-by-Frogspawn.patch b/patches/server/Add-SpawnReason-to-Tadpoles-spawned-by-Frogspawn.patch new file mode 100644 index 0000000000..cd94ded9ec --- /dev/null +++ b/patches/server/Add-SpawnReason-to-Tadpoles-spawned-by-Frogspawn.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Doc +Date: Wed, 20 Jul 2022 12:07:36 -0400 +Subject: [PATCH] Add SpawnReason to Tadpoles spawned by Frogspawn + + +diff --git a/src/main/java/net/minecraft/world/level/block/FrogspawnBlock.java b/src/main/java/net/minecraft/world/level/block/FrogspawnBlock.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/level/block/FrogspawnBlock.java ++++ b/src/main/java/net/minecraft/world/level/block/FrogspawnBlock.java +@@ -0,0 +0,0 @@ public class FrogspawnBlock extends Block { + int k = random.nextInt(1, 361); + tadpole.moveTo(d, (double)pos.getY() - 0.5D, e, (float)k, 0.0F); + tadpole.setPersistenceRequired(); +- world.addFreshEntity(tadpole); ++ world.addFreshEntity(tadpole, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.EGG); // Paper + } + + }