From 6e20420e66917007324f00a7fcd427f503257c56 Mon Sep 17 00:00:00 2001 From: MrMicky Date: Sun, 10 Feb 2019 22:55:44 +0100 Subject: [PATCH] Improve id generation --- src/main/java/fr/mrmicky/fastboard/FastBoard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/mrmicky/fastboard/FastBoard.java b/src/main/java/fr/mrmicky/fastboard/FastBoard.java index 44a1ab2..77ab7ae 100644 --- a/src/main/java/fr/mrmicky/fastboard/FastBoard.java +++ b/src/main/java/fr/mrmicky/fastboard/FastBoard.java @@ -109,7 +109,7 @@ public class FastBoard { public FastBoard(Player player) { this.player = player; - id = "fb-" + UUID.randomUUID().toString().substring(0, 8); + id = "fb-" + Double.toString(Math.random()).substring(2, 10); try { sendObjectivePacket(ObjectiveMode.CREATE);