diff --git a/Spigot-Server-Patches/0394-Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch b/Spigot-Server-Patches/0394-Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch index 355115721..26e69fefe 100644 --- a/Spigot-Server-Patches/0394-Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch +++ b/Spigot-Server-Patches/0394-Fix-MC-151674-Close-RegionFiles-when-they-get-evicte.patch @@ -1,4 +1,4 @@ -From dc2630e6c5d7c7668251a1f73d0f35ee01e173bb Mon Sep 17 00:00:00 2001 +From 4ee0a7fa87c1a754cdcd04bdea98dff8fa09a0dc Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Sun, 12 May 2019 19:25:53 -0700 Subject: [PATCH] Fix MC-151674 Close RegionFiles when they get evicted from @@ -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 @@ -56,7 +56,7 @@ 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()) {