Fix engine initialization crash
This commit is contained in:
parent
156b027ff2
commit
a5c06dc806
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
||||||
versioningCodename=Sugarcane
|
versioningCodename=Sugarcane
|
||||||
versioningVersion=1
|
versioningVersion=1
|
||||||
versioningType=release
|
versioningType=release
|
||||||
versioningTyperelease=2
|
versioningTyperelease=3
|
||||||
versioningFork=
|
versioningFork=
|
||||||
|
|
||||||
# Java
|
# Java
|
||||||
|
|
|
@ -40,7 +40,7 @@ public final class BukkitLoggingAdapter implements LoggingAdapter {
|
||||||
@Override
|
@Override
|
||||||
public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) {
|
public void print(@NotNull LogLevel level, @NotNull StackTraceElement issuer, @NotNull String message, @NotNull String format) {
|
||||||
// Remove any tags
|
// Remove any tags
|
||||||
if (EngineConfiguration.getInstance().getLogFeatures().contains("formatting"))
|
if (EngineConfiguration.getInstance() != null && EngineConfiguration.getInstance().getLogFeatures().contains("formatting"))
|
||||||
format = new EmptyShortcodeParser(format, true).getClean();
|
format = new EmptyShortcodeParser(format, true).getClean();
|
||||||
|
|
||||||
switch (level) {
|
switch (level) {
|
||||||
|
|
Loading…
Reference in a new issue