From 45c74831027c3320fd4863e9dad577cecab593c7 Mon Sep 17 00:00:00 2001 From: zml Date: Sun, 3 Sep 2023 19:21:35 -0700 Subject: [PATCH] fix: Correct inverted header newline condition --- .../blossom/internal/worker/GenerateWorkerInvokerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workerClasspath/java/net/kyori/blossom/internal/worker/GenerateWorkerInvokerImpl.java b/src/workerClasspath/java/net/kyori/blossom/internal/worker/GenerateWorkerInvokerImpl.java index 397fd8e..617995d 100644 --- a/src/workerClasspath/java/net/kyori/blossom/internal/worker/GenerateWorkerInvokerImpl.java +++ b/src/workerClasspath/java/net/kyori/blossom/internal/worker/GenerateWorkerInvokerImpl.java @@ -97,7 +97,7 @@ public void generate( if (header != null) { writer.write(header); // Only insert a newline if there's absolutely nothing -- otherwise it's up to the header provided - if (header.endsWith("\n")) { + if (!header.endsWith("\n")) { writer.newLine(); } }