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 e40a0bad2e..ee05e8bb8e 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); + }