2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-09-02 18:46:04 +02:00
|
|
|
From: kickash32 <kickash32@gmail.com>
|
|
|
|
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
|
2020-06-26 01:38:24 +02:00
|
|
|
index 921abae4914c7b3f28d387f7a682d991293c4798..2f1d168bd6daad1bbd41977b18263d1fe67a3da0 100644
|
2019-09-02 18:46:04 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java
|
2020-02-21 18:52:20 +01:00
|
|
|
@@ -196,7 +196,7 @@ public abstract class MobSpawnerAbstract {
|
2019-09-02 18:46:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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()) {
|