mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-11-12 04:05:12 -05:00
Actually made it use baseDir...
This commit is contained in:
parent
55775d0891
commit
cce533680a
@ -33,7 +33,7 @@ public class SerializedStorageMedium implements StorageMedium {
|
||||
@Override
|
||||
public boolean savePlayer(PlayerSave s) {
|
||||
try {
|
||||
File f = new File(s.getUsername());
|
||||
File f = new File(baseDir + File.separator + s.getUsername());
|
||||
if(!f.exists())
|
||||
f.createNewFile();
|
||||
oos = new ObjectOutputStream(new FileOutputStream(f));
|
||||
@ -261,7 +261,7 @@ public class SerializedStorageMedium implements StorageMedium {
|
||||
|
||||
|
||||
public PlayerSave getPlayerData(long user) {
|
||||
File userr = new File(DataConversions.hashToUsername(user));
|
||||
File userr = new File(baseDir + File.separator + DataConversions.hashToUsername(user));
|
||||
if (!userr.exists() )
|
||||
{
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user