From d090f913633e48456ee9e789edb87aa53f344a42 Mon Sep 17 00:00:00 2001 From: Pablo Herrera Date: Mon, 9 Oct 2023 19:56:50 +0200 Subject: [PATCH] Allow tablist resize without enabled tablist Signed-off-by: Pablo Herrera --- core/src/main/java/tc/oc/pgm/PGMPlugin.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/tc/oc/pgm/PGMPlugin.java b/core/src/main/java/tc/oc/pgm/PGMPlugin.java index fdcf625656..f6432b0864 100644 --- a/core/src/main/java/tc/oc/pgm/PGMPlugin.java +++ b/core/src/main/java/tc/oc/pgm/PGMPlugin.java @@ -222,13 +222,13 @@ public void onEnable() { if (config.showTabList()) { matchTabManager = new MatchTabManager(this); + } - if (config.resizeTabList()) { - if (this.getServer().getPluginManager().isPluginEnabled("ProtocolLib")) { - TablistResizer.registerAdapter(this); - } else { - logger.warning("ProtocolLib is required when 'ui.resize' is enabled"); - } + if (config.resizeTabList()) { + if (this.getServer().getPluginManager().isPluginEnabled("ProtocolLib")) { + TablistResizer.registerAdapter(this); + } else { + logger.warning("ProtocolLib is required when 'ui.resize' is enabled"); } }