mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 19:18:12 +01:00
commit
ada1e49d3c
@ -193,7 +193,7 @@ public class ExtensionManager {
|
|||||||
|
|
||||||
// Set extension description
|
// Set extension description
|
||||||
try {
|
try {
|
||||||
Field descriptionField = extensionClass.getSuperclass().getDeclaredField("description");
|
Field descriptionField = Extension.class.getDeclaredField("description");
|
||||||
descriptionField.setAccessible(true);
|
descriptionField.setAccessible(true);
|
||||||
descriptionField.set(extension, extensionDescription);
|
descriptionField.set(extension, extensionDescription);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
@ -205,7 +205,7 @@ public class ExtensionManager {
|
|||||||
|
|
||||||
// Set logger
|
// Set logger
|
||||||
try {
|
try {
|
||||||
Field loggerField = extensionClass.getSuperclass().getDeclaredField("logger");
|
Field loggerField = Extension.class.getDeclaredField("logger");
|
||||||
loggerField.setAccessible(true);
|
loggerField.setAccessible(true);
|
||||||
loggerField.set(extension, LoggerFactory.getLogger(extensionClass));
|
loggerField.set(extension, LoggerFactory.getLogger(extensionClass));
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user