aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch')
-rw-r--r--Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch b/Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch
index 5245e68f98..0a24c2e3cc 100644
--- a/Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch
+++ b/Spigot-Server-Patches/0098-Reduce-IO-ops-opening-a-new-region-file.patch
@@ -1,11 +1,11 @@
-From b4237ef0e075d98a14b87bfd673d34b96cb1d966 Mon Sep 17 00:00:00 2001
+From 65277bb5c79ac221f24ca1bded6e71b69f559815 Mon Sep 17 00:00:00 2001
From: Antony Riley <[email protected]>
Date: Tue, 29 Mar 2016 06:56:23 +0300
Subject: [PATCH] Reduce IO ops opening a new region file.
diff --git a/src/main/java/net/minecraft/server/RegionFile.java b/src/main/java/net/minecraft/server/RegionFile.java
-index 5bcbd718f..2bd85e2d1 100644
+index c3424a35..eac8b22b 100644
--- a/src/main/java/net/minecraft/server/RegionFile.java
+++ b/src/main/java/net/minecraft/server/RegionFile.java
@@ -8,9 +8,12 @@ import java.io.ByteArrayInputStream;
@@ -21,7 +21,7 @@ index 5bcbd718f..2bd85e2d1 100644
import java.util.List;
import java.util.zip.DeflaterOutputStream;
import java.util.zip.GZIPInputStream;
-@@ -67,8 +70,16 @@ public class RegionFile {
+@@ -72,8 +75,16 @@ public class RegionFile {
int k;
@@ -37,9 +37,9 @@ index 5bcbd718f..2bd85e2d1 100644
- k = this.c.readInt();
+ k = headerAsInts.get(); // Paper
this.d[j] = k;
- if (k != 0 && (k >> 8) + (k & 255) <= this.f.size()) {
- for (int l = 0; l < (k & 255); ++l) {
-@@ -78,7 +89,7 @@ public class RegionFile {
+ // Spigot start
+ int length = k & 255;
+@@ -99,7 +110,7 @@ public class RegionFile {
}
for (j = 0; j < 1024; ++j) {
@@ -49,5 +49,5 @@ index 5bcbd718f..2bd85e2d1 100644
}
} catch (IOException ioexception) {
--
-2.18.0
+2.20.1