2020-01-22 02:02:07 +00:00
|
|
|
From 5c76b806f7dfdc6aa605e9c555881598656d55b6 Mon Sep 17 00:00:00 2001
|
2019-09-02 16:46:04 +00: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-01-22 02:02:07 +00:00
|
|
|
index b179893a1..b96f6461d 100644
|
2019-09-02 16:46:04 +00:00
|
|
|
--- 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()) {
|
|
|
|
--
|
2020-01-22 02:02:07 +00:00
|
|
|
2.25.0.windows.1
|
2019-09-02 16:46:04 +00:00
|
|
|
|