Attempt at fixing issue with location saving.

This commit is contained in:
Brianna 2020-02-25 16:26:55 -05:00
parent 47661cf04e
commit ea6646af27

View File

@ -63,7 +63,8 @@ public class Methods {
double x = location.getBlockX();
double y = location.getBlockY();
double z = location.getBlockZ();
String str = w + ":" + x + ":" + y + ":" + z;
DecimalFormat df = new DecimalFormat("####.####");
String str = w + ":" + df.format(x) + ":" + df.format(y) + ":" + df.format(z);
str = str.replace(".0", "").replace("/", "");
return str;
}