Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
439131c
commit b7dc6fb
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
Spigot-Server-Patches/0414-only-add-passanger-entities-once-from-spawners.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 269842f724c46c5faed547d65fa33619b794ccd5 Mon Sep 17 00:00:00 2001 | ||
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 | ||
index b05f6c2f..a4e6be54 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.22.0 | ||
|
b7dc6fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct the mistake with the great spawn of the robbers around their tower, and the spawn is endless and there is no limit to it