From 7494b8abea223a90f7cf021c85cc1dc622138651 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 29 Jan 2023 10:04:05 +0100 Subject: [PATCH] Fix some ouput Signed-off-by: yoyosource --- .../bausystem/features/cuboid/clipboard/CuboidCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/cuboid/clipboard/CuboidCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/cuboid/clipboard/CuboidCommand.java index bf600b7c..d0fc8978 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/cuboid/clipboard/CuboidCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/cuboid/clipboard/CuboidCommand.java @@ -50,6 +50,6 @@ public class CuboidCommand extends SWCommand { time = System.currentTimeMillis() - time; player.sendMessage("§aEs wurden " + counter.get() + " Cuboids erstellt!"); player.sendMessage("§aDas hat " + time + "ms gedauert!"); - player.sendMessage("§aDas sind " + (counter.get() / time) + " Cuboids/ms!"); + player.sendMessage("§aDas sind " + (counter.get() / Math.max(time, 1)) + " Cuboids/ms!"); } }