aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/player
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-16 17:15:44 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-16 17:15:44 -0600
commitbb6e126297ac0767ee1e174eb3a7d710f2b7ab2b (patch)
tree892e64a39de4a883bc5b31ad562a9922b90ceaf0 /src/net/brysonsteck/Resurrection/player
parentc1aae0979096944fa86b41495f39a7085497bb7e (diff)
downloadresurrection-bb6e126297ac0767ee1e174eb3a7d710f2b7ab2b.tar
resurrection-bb6e126297ac0767ee1e174eb3a7d710f2b7ab2b.tar.gz
resurrection-bb6e126297ac0767ee1e174eb3a7d710f2b7ab2b.tar.bz2
fixed file location
Diffstat (limited to 'src/net/brysonsteck/Resurrection/player')
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerData.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerData.java b/src/net/brysonsteck/Resurrection/player/PlayerData.java
index 44dddb5..bdba51d 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerData.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerData.java
@@ -13,19 +13,19 @@ public class PlayerData {
public void saveData(String write) {
try {
- FileWriter writer = new FileWriter("data/player.data");
+ FileWriter writer = new FileWriter("playerData.resurrection");
writer.write(write);
writer.close();
- readData();
} catch (IOException e) {
e.printStackTrace();
}
+ readData();
}
public void readData() {
try {
rawData = "";
- BufferedReader reader = new BufferedReader(new FileReader("data/player.data"));
+ BufferedReader reader = new BufferedReader(new FileReader("data/playerData.resurrection"));
String line = "";
String[] playerData;
while (true) {