From 9af389ce1d1feb7fe31c6d63de2fbe56802c1981 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Tue, 22 Jan 2019 14:18:06 +0100 Subject: [PATCH] Made BentoBox#logWarning(String) evaluating lazily the parameter --- src/main/java/world/bentobox/bentobox/BentoBox.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/BentoBox.java b/src/main/java/world/bentobox/bentobox/BentoBox.java index 77cb2c874..444bdea06 100644 --- a/src/main/java/world/bentobox/bentobox/BentoBox.java +++ b/src/main/java/world/bentobox/bentobox/BentoBox.java @@ -328,7 +328,7 @@ public class BentoBox extends JavaPlugin { } public void logWarning(String warning) { - getLogger().warning(warning); + getLogger().warning(() -> warning); } /**