From 83a95a05c83ae6774daa261db15d60f4f68f40c6 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 --- .../Remove-certain-entities-that-fly-through-unloaded-ch.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Remove-certain-entities-that-fly-through-unloaded-ch.patch b/Spigot-Server-Patches/Remove-certain-entities-that-fly-through-unloaded-ch.patch index 3ab0e17f81..fad5fb2982 100644 --- a/Spigot-Server-Patches/Remove-certain-entities-that-fly-through-unloaded-ch.patch +++ b/Spigot-Server-Patches/Remove-certain-entities-that-fly-through-unloaded-ch.patch @@ -86,7 +86,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 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;