mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-10-04 05:27:27 +02:00
added -DVFPDebug Property to show debug logs
This commit is contained in:
parent
12163042f5
commit
9a9c079d13
@ -55,14 +55,17 @@ public class ViaFabricPlus {
|
|||||||
// Classic Stuff
|
// Classic Stuff
|
||||||
CustomClassicProtocolExtensions.create();
|
CustomClassicProtocolExtensions.create();
|
||||||
ClassicProtocolCommands.create();
|
ClassicProtocolCommands.create();
|
||||||
ClassiCubeAccountHandler.create();
|
ClassicItemSelectionScreen.create();
|
||||||
|
|
||||||
// Bedrock Stuff
|
// Account Handler
|
||||||
|
ClassiCubeAccountHandler.create();
|
||||||
BedrockAccountHandler.create();
|
BedrockAccountHandler.create();
|
||||||
|
|
||||||
// Protocol Translator
|
// Fixes which requires to be loaded pre
|
||||||
ChatLengthCalculation.create();
|
ChatLengthCalculation.create();
|
||||||
FontCacheFix.init();
|
FontCacheFix.init();
|
||||||
|
|
||||||
|
// Protocol Translator
|
||||||
ProtocolHack.init();
|
ProtocolHack.init();
|
||||||
|
|
||||||
FinishMinecraftLoadCallback.EVENT.register(() -> {
|
FinishMinecraftLoadCallback.EVENT.register(() -> {
|
||||||
@ -70,9 +73,7 @@ public class ViaFabricPlus {
|
|||||||
settingsSystem.init();
|
settingsSystem.init();
|
||||||
informationSystem.init();
|
informationSystem.init();
|
||||||
|
|
||||||
// Stuff which requires Minecraft to be initialized
|
// Mappings which requires Minecraft to be initialized
|
||||||
ClassicItemSelectionScreen.create();
|
|
||||||
|
|
||||||
PackFormatsMappings.load();
|
PackFormatsMappings.load();
|
||||||
ItemReleaseVersionMappings.create();
|
ItemReleaseVersionMappings.create();
|
||||||
ArmorPointsMappings.load();
|
ArmorPointsMappings.load();
|
||||||
|
@ -59,7 +59,11 @@ public class BedrockAccountHandler extends FileSaver {
|
|||||||
account = MinecraftAuth.Bedrock.Title.MC_CHAIN.refresh(httpClient, account);
|
account = MinecraftAuth.Bedrock.Title.MC_CHAIN.refresh(httpClient, account);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ViaFabricPlus.LOGGER.error("Failed to log into Bedrock account!", e);
|
if (System.getProperty("VFPDebug") != null) {
|
||||||
|
ViaFabricPlus.LOGGER.error("Failed to log into Bedrock account!", e);
|
||||||
|
} else {
|
||||||
|
ViaFabricPlus.LOGGER.error("Failed to log into Bedrock account! Use -DVFPDebug to show the log");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,11 @@ public class ClassiCubeAccountHandler extends FileSaver {
|
|||||||
try {
|
try {
|
||||||
account = ClassiCubeAccount.fromJson(object);
|
account = ClassiCubeAccount.fromJson(object);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ViaFabricPlus.LOGGER.error("Failed to log into ClassiCube account!", e);
|
if (System.getProperty("VFPDebug") != null) {
|
||||||
|
ViaFabricPlus.LOGGER.error("Failed to log into ClassiCube account!", e);
|
||||||
|
} else {
|
||||||
|
ViaFabricPlus.LOGGER.error("Failed to log into ClassiCube account! Use -DVFPDebug to show the log");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user