3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-16 03:20:07 +01:00

fixed file extension for offline mode player data

added ".dat" file extension so this is able to find a players offline mode data if available
Dieser Commit ist enthalten in:
CodeCrafter47 2014-05-10 22:47:41 +02:00 committet von md_5
Ursprung 6d0b39bc76
Commit 98272bf282

Datei anzeigen

@ -17,7 +17,7 @@ index 93ff8d3..cc4d487 100644
+ boolean usingWrongFile = false;
+ if ( !file1.exists() )
+ {
+ file1 = new File( this.playerDir, UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + entityhuman.getName() ).getBytes( "UTF-8" ) ).toString() );
+ file1 = new File( this.playerDir, UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + entityhuman.getName() ).getBytes( "UTF-8" ) ).toString() + ".dat");
+ if ( file1.exists() )
+ {
+ usingWrongFile = true;