mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-28 23:57:28 +02:00
Use block locations while serializing
This commit is contained in:
parent
2c9ef2fa4a
commit
e65abd365a
@ -127,9 +127,9 @@ public class Methods {
|
|||||||
if (location == null)
|
if (location == null)
|
||||||
return "";
|
return "";
|
||||||
String w = location.getWorld().getName();
|
String w = location.getWorld().getName();
|
||||||
double x = location.getX();
|
double x = location.getBlockX();
|
||||||
double y = location.getY();
|
double y = location.getBlockY();
|
||||||
double z = location.getZ();
|
double z = location.getBlockZ();
|
||||||
String str = w + ":" + x + ":" + y + ":" + z;
|
String str = w + ":" + x + ":" + y + ":" + z;
|
||||||
str = str.replace(".0", "").replace("/", "");
|
str = str.replace(".0", "").replace("/", "");
|
||||||
return str;
|
return str;
|
||||||
|
Loading…
Reference in New Issue
Block a user