Use block locations while serializing

This commit is contained in:
Esophose 2019-04-13 19:40:03 -06:00
parent 2c9ef2fa4a
commit e65abd365a

View File

@ -127,9 +127,9 @@ public class Methods {
if (location == null)
return "";
String w = location.getWorld().getName();
double x = location.getX();
double y = location.getY();
double z = location.getZ();
double x = location.getBlockX();
double y = location.getBlockY();
double z = location.getBlockZ();
String str = w + ":" + x + ":" + y + ":" + z;
str = str.replace(".0", "").replace("/", "");
return str;