From 23dd41daa5a0091b87b787c7744453be904d01b1 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 4 Oct 2024 23:48:43 +0200 Subject: [PATCH] dont print null for descriptions in help system --- .../java/de/com/baseband/client/feature/commands/Help.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/commands/Help.java b/Client/src/main/java/de/com/baseband/client/feature/commands/Help.java index dc2ce91..e98bad0 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/commands/Help.java +++ b/Client/src/main/java/de/com/baseband/client/feature/commands/Help.java @@ -91,7 +91,8 @@ public class Help extends Feature { Chat.print("§c§l" + Setup.Name + " help system: Feature " + args[1]); for (Feature feature : Features.features) { if(feature.toString().replace(' ', '_').equalsIgnoreCase(args[1])) { - Chat.print(feature.hover); + if(feature.hover != null) + Chat.print(feature.hover); Chat.print("The feature is " + (feature.enabled ? "§aenabled" : "§cdisabled") + "."); Chat.print("It has " + feature.handle.getContent().map.size() + " config entries:"); for (TLMap.Entry entry : feature.handle.getContent().map.entries()) {