From 69337ef9ee3077d7d69fd6cef1eb31c08fd5ee54 Mon Sep 17 00:00:00 2001 From: Byteflux Date: Fri, 17 Apr 2015 03:25:02 -0700 Subject: [PATCH] Fix remove-unloaded.enderpearls option not being respected --- ...5-Remove-certain-entities-that-fly-through-unloaded-ch.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/0025-Remove-certain-entities-that-fly-through-unloaded-ch.patch b/Spigot-Server-Patches/0025-Remove-certain-entities-that-fly-through-unloaded-ch.patch index 3a32323d0..77efb99af 100644 --- a/Spigot-Server-Patches/0025-Remove-certain-entities-that-fly-through-unloaded-ch.patch +++ b/Spigot-Server-Patches/0025-Remove-certain-entities-that-fly-through-unloaded-ch.patch @@ -86,7 +86,7 @@ index 15fe976..7425bbf 100644 entity.ticksLived++; entity.inactiveTick(); + // PaperSpigot start - Remove entities in unloaded chunks -+ if (entity instanceof EntityEnderPearl || (!this.isChunkLoaded(i, j, true) && ++ if (!this.isChunkLoaded(i, j, true) && ((entity instanceof EntityEnderPearl && this.paperSpigotConfig.removeUnloadedEnderPearls) || + (entity instanceof EntityFallingBlock && this.paperSpigotConfig.removeUnloadedFallingBlocks) || + (entity instanceof EntityTNTPrimed && this.paperSpigotConfig.removeUnloadedTNTEntities))) { + entity.inUnloadedChunk = true;