diff options
author | md_5 <git@md-5.net> | 2018-12-17 21:36:21 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-17 21:36:21 +1100 |
commit | bb6f384a830548def9c73264dab1a4d06fc2bdf4 (patch) | |
tree | ccdda6b58334f548f551af7698d62a005b888a4f | |
parent | 38cf676e328d869f8d5cded4d9e9ad3d75afb760 (diff) | |
download | craftbukkit-bb6f384a830548def9c73264dab1a4d06fc2bdf4.tar craftbukkit-bb6f384a830548def9c73264dab1a4d06fc2bdf4.tar.gz craftbukkit-bb6f384a830548def9c73264dab1a4d06fc2bdf4.tar.lz craftbukkit-bb6f384a830548def9c73264dab1a4d06fc2bdf4.tar.xz craftbukkit-bb6f384a830548def9c73264dab1a4d06fc2bdf4.zip |
SPIGOT-4534: Only call event for new chunks
-rw-r--r-- | nms-patches/Chunk.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/Chunk.patch b/nms-patches/Chunk.patch index bec33360..f7b4aa9e 100644 --- a/nms-patches/Chunk.patch +++ b/nms-patches/Chunk.patch @@ -149,7 +149,7 @@ + List<Entity> toRemove = new LinkedList<>(); 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); + return false; + } |