From de3742283bc202f476d8b7edde47c22d11e71a1c Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Sun, 1 Dec 2024 13:53:04 -0800 Subject: [PATCH] Do not break when PlayerNaturallySpawnCreaturesEvent is cancelled If there is a player nearby which had its event not cancelled, then that should take precedence. --- patches/server/PlayerNaturallySpawnCreaturesEvent.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/PlayerNaturallySpawnCreaturesEvent.patch b/patches/server/PlayerNaturallySpawnCreaturesEvent.patch index de0bddb918..cfb779441b 100644 --- a/patches/server/PlayerNaturallySpawnCreaturesEvent.patch +++ b/patches/server/PlayerNaturallySpawnCreaturesEvent.patch @@ -34,7 +34,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + blockRange = 16384.0D; + if (reducedRange) { + event = entityplayer.playerNaturallySpawnedEvent; -+ if (event == null || event.isCancelled()) return false; ++ if (event == null || event.isCancelled()) continue; + blockRange = (double) ((event.getSpawnRadius() << 4) * (event.getSpawnRadius() << 4)); + } + // Paper end - PlayerNaturallySpawnCreaturesEvent