From 8f130b5dd92f75c2b094de281cdada0ae96ca2ea Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 15 Jan 2021 21:25:16 +0000 Subject: [PATCH] Fix missing field bug --- .../java/net/minestom/server/extensions/ExtensionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/extensions/ExtensionManager.java b/src/main/java/net/minestom/server/extensions/ExtensionManager.java index 6d2ded208..f80f6072f 100644 --- a/src/main/java/net/minestom/server/extensions/ExtensionManager.java +++ b/src/main/java/net/minestom/server/extensions/ExtensionManager.java @@ -193,7 +193,7 @@ public class ExtensionManager { // Set extension description try { - Field descriptionField = extensionClass.getSuperclass().getDeclaredField("description"); + Field descriptionField = Extension.class.getDeclaredField("description"); descriptionField.setAccessible(true); descriptionField.set(extension, extensionDescription); } catch (IllegalAccessException e) { @@ -205,7 +205,7 @@ public class ExtensionManager { // Set logger try { - Field loggerField = extensionClass.getSuperclass().getDeclaredField("logger"); + Field loggerField = Extension.class.getDeclaredField("logger"); loggerField.setAccessible(true); loggerField.set(extension, LoggerFactory.getLogger(extensionClass)); } catch (IllegalAccessException e) {