From 1c5b9d4efca252662cf8570bae46091e76e8e978 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io> Date: Sat, 26 Feb 2011 11:51:31 +0000 Subject: [PATCH] Fixed empty console! Oops! By: Dinnerbone <dinnerbone@dinnerbone.com> --- .../bukkit/craftbukkit/util/ShortConsoleLogFormatter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/ShortConsoleLogFormatter.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/ShortConsoleLogFormatter.java index 404cf32dfe..d828258068 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/ShortConsoleLogFormatter.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/ShortConsoleLogFormatter.java @@ -25,13 +25,13 @@ public class ShortConsoleLogFormatter extends Formatter { } } catch (OptionException ex) { System.err.println("Given date format is not valid. Falling back to default."); - } finally { - if (date == null) { - date = new SimpleDateFormat("HH:mm:ss"); - } } } + if (date == null) { + date = new SimpleDateFormat("HH:mm:ss"); + } + this.date = date; }