mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
Missed diff on spigot chunk patch
not much concern over it, it would of just misidentified a corrupt chunk as not corrupt
This commit is contained in:
parent
d1b6d22eac
commit
b4e7e439e4
@ -1,4 +1,4 @@
|
||||
From 5cc6dd8fc7df054e9388d7feaf9a506db71480d6 Mon Sep 17 00:00:00 2001
|
||||
From 4a27b93bf977cc8e7bf1a89887fd72b78273a851 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Fri, 15 Feb 2019 01:08:19 -0500
|
||||
Subject: [PATCH] Allow Saving of Oversized Chunks
|
||||
@ -51,7 +51,7 @@ index 12268f87b9..e1f7e06ab2 100644
|
||||
a((NBTBase) nbttagcompound, dataoutput);
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/RegionFile.java b/src/main/java/net/minecraft/server/RegionFile.java
|
||||
index c20511588d..448a903c16 100644
|
||||
index c20511588d..d148ce4976 100644
|
||||
--- a/src/main/java/net/minecraft/server/RegionFile.java
|
||||
+++ b/src/main/java/net/minecraft/server/RegionFile.java
|
||||
@@ -78,6 +78,7 @@ public class RegionFile {
|
||||
@ -62,6 +62,15 @@ index c20511588d..448a903c16 100644
|
||||
// Paper End
|
||||
|
||||
for (j = 0; j < 1024; ++j) {
|
||||
@@ -93,7 +94,7 @@ public class RegionFile {
|
||||
this.c.seek(j * 4 + 4); // Go back to where we were
|
||||
}
|
||||
}
|
||||
- if (k > 0 && (k >> 8) > 1 && (k >> 8) + (k & 255) <= this.f.size()) { // Paper >= 1 as 0/1 are the headers, and negative isnt valid
|
||||
+ if (k > 0 && (k >> 8) > 1 && (k >> 8) + (length) <= this.f.size()) { // Paper >= 1 as 0/1 are the headers, and negative isnt valid
|
||||
for (int l = 0; l < (length); ++l) {
|
||||
// Spigot end
|
||||
this.f.set((k >> 8) + l, false);
|
||||
@@ -119,7 +120,7 @@ public class RegionFile {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user