From 6a84ae3d307869763ac7155f131a5abd6620d314 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 16 Jan 2021 16:05:33 -0800 Subject: [PATCH] Do not add passengers of entities that were above save limit (#5073) Co-authored-by: Spottedleaf --- Spigot-Server-Patches/Entity-load-save-limit-per-chunk.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Entity-load-save-limit-per-chunk.patch b/Spigot-Server-Patches/Entity-load-save-limit-per-chunk.patch index e40a0bad2..ee05e8bb8 100644 --- a/Spigot-Server-Patches/Entity-load-save-limit-per-chunk.patch +++ b/Spigot-Server-Patches/Entity-load-save-limit-per-chunk.patch @@ -80,7 +80,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + final int saveLimit = world.paperConfig.entityPerChunkSaveLimits.getOrDefault(entityType, -1); + if (saveLimit > -1) { + if (loadedEntityCounts.getOrDefault(entityType, 0) >= saveLimit) { -+ return entity; ++ return null; + } + loadedEntityCounts.merge(entityType, 1, Integer::sum); + }