From ea6646af279731005008c427a3f896f0bebe41c3 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 25 Feb 2020 16:26:55 -0500 Subject: [PATCH] Attempt at fixing issue with location saving. --- src/main/java/com/songoda/epicfurnaces/utils/Methods.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epicfurnaces/utils/Methods.java b/src/main/java/com/songoda/epicfurnaces/utils/Methods.java index d67b6c7..b7615f0 100644 --- a/src/main/java/com/songoda/epicfurnaces/utils/Methods.java +++ b/src/main/java/com/songoda/epicfurnaces/utils/Methods.java @@ -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; }