Skip to content

Commit

Permalink
Improve id generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMicky-FR committed Feb 10, 2019
1 parent 16db1ed commit 6e20420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/mrmicky/fastboard/FastBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e20420

Please sign in to comment.