mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-25 17:33:52 -07:00
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/NameReferencingFileConverter.java
|
||||
+++ b/net/minecraft/server/NameReferencingFileConverter.java
|
||||
@@ -83,8 +83,9 @@
|
||||
@@ -81,8 +81,9 @@
|
||||
if (gameprofilebanlist.c().exists()) {
|
||||
try {
|
||||
gameprofilebanlist.load();
|
||||
@@ -12,16 +12,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,7 +114,7 @@
|
||||
public void onProfileLookupFailed(GameProfile gameprofile, Exception exception) {
|
||||
NameReferencingFileConverter.e.warn("Could not lookup user banlist entry for {}", gameprofile.getName(), exception);
|
||||
if (!(exception instanceof ProfileNotFoundException)) {
|
||||
- throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception, null);
|
||||
+ throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception); // CraftBukkit - decompile error
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -141,8 +142,9 @@
|
||||
@@ -139,8 +140,9 @@
|
||||
if (ipbanlist.c().exists()) {
|
||||
try {
|
||||
ipbanlist.load();
|
||||
@@ -33,7 +24,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,8 +184,9 @@
|
||||
@@ -180,8 +182,9 @@
|
||||
if (oplist.c().exists()) {
|
||||
try {
|
||||
oplist.load();
|
||||
@@ -45,16 +36,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +201,7 @@
|
||||
public void onProfileLookupFailed(GameProfile gameprofile, Exception exception) {
|
||||
NameReferencingFileConverter.e.warn("Could not lookup oplist entry for {}", gameprofile.getName(), exception);
|
||||
if (!(exception instanceof ProfileNotFoundException)) {
|
||||
- throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception, null);
|
||||
+ throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception); // CraftBukkit - decompile error
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -226,8 +229,9 @@
|
||||
@@ -224,8 +227,9 @@
|
||||
if (whitelist.c().exists()) {
|
||||
try {
|
||||
whitelist.load();
|
||||
@@ -66,33 +48,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +246,7 @@
|
||||
public void onProfileLookupFailed(GameProfile gameprofile, Exception exception) {
|
||||
NameReferencingFileConverter.e.warn("Could not lookup user whitelist entry for {}", gameprofile.getName(), exception);
|
||||
if (!(exception instanceof ProfileNotFoundException)) {
|
||||
- throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception, null);
|
||||
+ throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception); // CraftBukkit - decompile error
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -337,7 +341,7 @@
|
||||
|
||||
this.a(file, s, s);
|
||||
} else {
|
||||
- throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception, null);
|
||||
+ throw new NameReferencingFileConverter.FileConversionException("Could not request user " + gameprofile.getName() + " from backend systems", exception); // CraftBukkit - decompile error
|
||||
}
|
||||
}
|
||||
|
||||
@@ -345,6 +349,30 @@
|
||||
File file1 = new File(file2, s + ".dat");
|
||||
File file3 = new File(file, s1 + ".dat");
|
||||
@@ -343,6 +347,30 @@
|
||||
File file5 = new File(file, s2 + ".dat");
|
||||
File file6 = new File(file4, s3 + ".dat");
|
||||
|
||||
+ // CraftBukkit start - Use old file name to seed lastKnownName
|
||||
+ NBTTagCompound root = null;
|
||||
+
|
||||
+ try {
|
||||
+ root = NBTCompressedStreamTools.a(new java.io.FileInputStream(file1));
|
||||
+ root = NBTCompressedStreamTools.a(new java.io.FileInputStream(file5));
|
||||
+ } catch (Exception exception) {
|
||||
+ exception.printStackTrace();
|
||||
+ }
|
||||
@@ -102,7 +66,7 @@
|
||||
+ root.set("bukkit", new NBTTagCompound());
|
||||
+ }
|
||||
+ NBTTagCompound data = root.getCompound("bukkit");
|
||||
+ data.setString("lastKnownName", s);
|
||||
+ data.setString("lastKnownName", s2);
|
||||
+
|
||||
+ try {
|
||||
+ NBTCompressedStreamTools.a(root, new java.io.FileOutputStream(file2));
|
||||
@@ -112,19 +76,10 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
NameReferencingFileConverter.b(file);
|
||||
if (!file1.renameTo(file3)) {
|
||||
throw new NameReferencingFileConverter.FileConversionException("Could not convert file for " + s, null);
|
||||
@@ -353,7 +381,7 @@
|
||||
|
||||
private String a(GameProfile gameprofile) {
|
||||
String s = null;
|
||||
- String[] astring = astring1;
|
||||
+ // String[] astring = astring1; // CraftBukkit - decompile error
|
||||
int i = astring.length;
|
||||
|
||||
for (int j = 0; j < i; ++j) {
|
||||
@@ -466,7 +494,7 @@
|
||||
NameReferencingFileConverter.b(file4);
|
||||
if (!file5.renameTo(file6)) {
|
||||
throw new NameReferencingFileConverter.FileConversionException("Could not convert file for " + s2);
|
||||
@@ -464,7 +492,7 @@
|
||||
|
||||
private static File d(PropertyManager propertymanager) {
|
||||
String s = propertymanager.getString("level-name", "world");
|
||||
|
Reference in New Issue
Block a user