mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Check online mode before converting and renaming player data
This commit is contained in:
parent
b8b1eef98c
commit
188e3332d6
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@
|
|||
+ File file1 = new File(file, s1 + s);
|
||||
+ // Spigot Start
|
||||
+ boolean usingWrongFile = false;
|
||||
+ if ( !file1.exists() )
|
||||
+ if ( org.bukkit.Bukkit.getOnlineMode() && !file1.exists() ) // Paper - Check online mode first
|
||||
+ {
|
||||
+ file1 = new File( file, java.util.UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + name ).getBytes( java.nio.charset.StandardCharsets.UTF_8 ) ).toString() + s );
|
||||
+ if ( file1.exists() )
|
||||
|
|
Loading…
Reference in a new issue