From 9ceadbe9f1388da5014b2741a574673b1d0421bf Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Sun, 18 Aug 2024 11:14:39 -0700 Subject: [PATCH] Fix entity limit patch deleting unnecessary entities We need to continue the save loop, not break from it when a limit is reached. --- patches/server/Entity-load-save-limit-per-chunk.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Entity-load-save-limit-per-chunk.patch b/patches/server/Entity-load-save-limit-per-chunk.patch index 1c763266a3..3f57ef3266 100644 --- a/patches/server/Entity-load-save-limit-per-chunk.patch +++ b/patches/server/Entity-load-save-limit-per-chunk.patch @@ -23,7 +23,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + final int saveLimit = world.paperConfig().chunks.entityPerChunkSaveLimit.getOrDefault(entityType, -1); + if (saveLimit > -1) { + if (savedEntityCounts.getOrDefault(entityType, 0) >= saveLimit) { -+ break; ++ continue; + } + savedEntityCounts.merge(entityType, 1, Integer::sum); + }