From d1310ddac51fb09fa0add74f525218aeb6b5dbd0 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Sun, 12 May 2019 23:06:28 -0500 Subject: [PATCH] Add comment to MC-151674 fix [11:00 PM] kashike: missed // Paper - MC-151674 comment here --- ...Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch b/Spigot-Server-Patches/Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch index 52d17c6c333..591945d3bb8 100644 --- a/Spigot-Server-Patches/Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch +++ b/Spigot-Server-Patches/Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch @@ -7,7 +7,7 @@ Subject: [PATCH] Fix MC-151674 Close RegionFiles when they get evicted from https://bugs.mojang.com/browse/MC-151674 diff --git a/src/main/java/net/minecraft/server/RegionFileCache.java b/src/main/java/net/minecraft/server/RegionFileCache.java -index d39d49944..5a22b661b 100644 +index d39d4994..e0bfa39c 100644 --- a/src/main/java/net/minecraft/server/RegionFileCache.java +++ b/src/main/java/net/minecraft/server/RegionFileCache.java @@ -0,0 +0,0 @@ public abstract class RegionFileCache implements AutoCloseable { @@ -15,7 +15,7 @@ index d39d49944..5a22b661b 100644 } else { if (this.cache.size() >= PaperConfig.regionFileCacheSize) { - this.cache.removeLast(); -+ this.cache.removeLast().close(); ++ this.cache.removeLast().close(); // Paper - MC-151674 } if (!this.a.exists()) {