mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-28 06:37:29 +02:00
Lets use integers instead of doubles.
This commit is contained in:
parent
efdb78c0c2
commit
dd7c6dfcb5
@ -114,9 +114,9 @@ public class Methods {
|
|||||||
if (location == null || location.getWorld() == null)
|
if (location == null || location.getWorld() == null)
|
||||||
return "";
|
return "";
|
||||||
String w = location.getWorld().getName();
|
String w = location.getWorld().getName();
|
||||||
double x = location.getX();
|
int x = location.getBlockX();
|
||||||
double y = location.getY();
|
int y = location.getBlockY();
|
||||||
double z = location.getZ();
|
int 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