mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +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 By: CodeCrafter47 <Flo.e3@gmx.de>
This commit is contained in:
parent
483c0d16d0
commit
a7d58d74c9
@ -17,7 +17,7 @@ index 93ff8d3..cc4d487 100644
|
|||||||
+ boolean usingWrongFile = false;
|
+ boolean usingWrongFile = false;
|
||||||
+ if ( !file1.exists() )
|
+ 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() )
|
+ if ( file1.exists() )
|
||||||
+ {
|
+ {
|
||||||
+ usingWrongFile = true;
|
+ usingWrongFile = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user