From ea6646af279731005008c427a3f896f0bebe41c3 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 25 Feb 2020 16:26:55 -0500 Subject: [PATCH 1/2] 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; } From b74369ebd97423e0fb16302de3b46d2179f4d634 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 26 Feb 2020 22:59:24 -0500 Subject: [PATCH 2/2] version 4.5.6 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ac1acee..b8c86cb 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ com.songoda EpicFurnaces 4.0.0 - 4.5.5 + 4.5.6 clean install EpicFurnaces-${project.version}