2020-04-22 06:06:30 +08:00
|
|
|
From 176dd584e7bd6449290e4fd2623491269521e870 Mon Sep 17 00:00:00 2001
|
2019-09-03 00:46:04 +08: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-04-22 06:06:30 +08:00
|
|
|
index 41001b02..df494d37 100644
|
2019-09-03 00:46:04 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/MobSpawnerAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MobSpawnerAbstract.java
|
2020-02-22 01:52:20 +08:00
|
|
|
@@ -196,7 +196,7 @@ public abstract class MobSpawnerAbstract {
|
2019-09-03 00:46:04 +08: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()) {
|
|
|
|
--
|
2020-04-22 06:06:30 +08:00
|
|
|
2.25.1.windows.1
|
2019-09-03 00:46:04 +08:00
|
|
|
|