mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 03:57:50 +01:00
Improve bootstrap warning
This commit is contained in:
parent
29c8f924fa
commit
fcc5bc4381
@ -479,7 +479,9 @@ public class ExtensionManager {
|
|||||||
private void setupCodeModifiers(@NotNull List<DiscoveredExtension> extensions) {
|
private void setupCodeModifiers(@NotNull List<DiscoveredExtension> extensions) {
|
||||||
final ClassLoader cl = getClass().getClassLoader();
|
final ClassLoader cl = getClass().getClassLoader();
|
||||||
if (!(cl instanceof MinestomRootClassLoader)) {
|
if (!(cl instanceof MinestomRootClassLoader)) {
|
||||||
LOGGER.warn("Current class loader is not a MinestomOverwriteClassLoader, but {}. This disables code modifiers (Mixin support is therefore disabled)", cl);
|
LOGGER.warn("Current class loader is not a MinestomOverwriteClassLoader, but {}. " +
|
||||||
|
"This disables code modifiers (Mixin support is therefore disabled). " +
|
||||||
|
"This can be fixed by starting your server using Bootstrap#bootstrap (optional).", cl);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
MinestomRootClassLoader modifiableClassLoader = (MinestomRootClassLoader) cl;
|
MinestomRootClassLoader modifiableClassLoader = (MinestomRootClassLoader) cl;
|
||||||
|
Loading…
Reference in New Issue
Block a user