Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-4534: Only call event for new chunks
Dieser Commit ist enthalten in:
Ursprung
38cf676e32
Commit
bb6f384a83
@ -149,7 +149,7 @@
|
|||||||
|
|
||||||
+ List<Entity> toRemove = new LinkedList<>();
|
+ List<Entity> toRemove = new LinkedList<>();
|
||||||
this.world.a(entityslice.stream().filter((entity) -> {
|
this.world.a(entityslice.stream().filter((entity) -> {
|
||||||
+ if (!CraftEventFactory.doEntityAddEventCalling(this.world, entity, CreatureSpawnEvent.SpawnReason.CHUNK_GEN)) {
|
+ if (this.needsDecoration && !CraftEventFactory.doEntityAddEventCalling(this.world, entity, CreatureSpawnEvent.SpawnReason.CHUNK_GEN)) { // Only call for new chunks
|
||||||
+ toRemove.add(entity);
|
+ toRemove.add(entity);
|
||||||
+ return false;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren