diff options
Diffstat (limited to 'Spigot-Server-Patches/0414-only-add-passanger-entities-once-from-spawners.patch')
-rw-r--r-- | Spigot-Server-Patches/0414-only-add-passanger-entities-once-from-spawners.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0414-only-add-passanger-entities-once-from-spawners.patch b/Spigot-Server-Patches/0414-only-add-passanger-entities-once-from-spawners.patch new file mode 100644 index 0000000000..5e7527e559 --- /dev/null +++ b/Spigot-Server-Patches/0414-only-add-passanger-entities-once-from-spawners.patch @@ -0,0 +1,22 @@ +From 4eec7762acaae4f806f7994f8df930551948f357 Mon Sep 17 00:00:00 2001 +From: kickash32 <[email protected]> +Date: Wed, 21 Aug 2019 23:57:32 +0500 +Subject: [PATCH] only add passanger entities once from spawners + + +diff --git a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java +index b05f6c2f2..a4e6be549 100644 +--- a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java ++++ b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java +@@ -195,7 +195,7 @@ public abstract class MobSpawnerAbstract { + } + + private void a(Entity entity) { +- if (this.a().addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER)) { // CraftBukkit ++ if (entity.valid || this.a().addEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER)) { // CraftBukkit // Paper + Iterator iterator = entity.getPassengers().iterator(); + + while (iterator.hasNext()) { +-- +2.23.0 + |