Update to Minecraft 1.16.2

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-08-12 07:00:00 +10:00
parent 5e5f7f19dc
commit 6a9e00d4b6
208 changed files with 2144 additions and 2455 deletions

View File

@@ -1,17 +1,19 @@
--- a/net/minecraft/server/WorldNBTStorage.java
+++ b/net/minecraft/server/WorldNBTStorage.java
@@ -10,6 +10,10 @@
@@ -6,6 +6,12 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
+// CraftBukkit start
+import java.io.FileInputStream;
+import java.io.InputStream;
+import org.bukkit.craftbukkit.entity.CraftPlayer;
+// CraftBukkit end
+
public class WorldNBTStorage {
private static final Logger LOGGER = LogManager.getLogger();
@@ -53,6 +57,16 @@
@@ -49,6 +55,16 @@
}
if (nbttagcompound != null) {
@@ -28,7 +30,7 @@
int i = nbttagcompound.hasKeyOfType("DataVersion", 3) ? nbttagcompound.getInt("DataVersion") : -1;
entityhuman.load(GameProfileSerializer.a(this.a, DataFixTypes.PLAYER, nbttagcompound, i));
@@ -61,6 +75,22 @@
@@ -57,6 +73,22 @@
return nbttagcompound;
}
@@ -51,7 +53,7 @@
public String[] getSeenPlayers() {
String[] astring = this.playerDir.list();
@@ -76,4 +106,10 @@
@@ -72,4 +104,10 @@
return astring;
}