Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/1.20-Unified' into unintrusive…
Browse files Browse the repository at this point in the history
…-vanilla
  • Loading branch information
Madis0 committed Nov 29, 2023
2 parents f060b95 + a38bc11 commit 45035e4
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"minVersion": "0.8",
"package": "com.aizistral.nochatreports.forge.mixins",
"compatibilityLevel": "JAVA_17",
"verbose": true,
"mixins": [],
"client": [
"client.MixinClientConnection",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private NCRClient() {
}

static void setup() {
NCRCore.LOGGER.info("Client initialization...");
NCRCore.LOGGER.debug("Client initialization...");

ClientEvents.DISCONNECT.register(NCRClient::onDisconnect);
ClientEvents.PLAY_READY.register(NCRClient::onPlayReady);
Expand Down Expand Up @@ -66,7 +66,7 @@ private static void onPlayReady(ClientPacketListener handler, Minecraft client)
}

if (NCRConfig.getCommon().enableDebugLog()) {
NCRCore.LOGGER.info("Sucessfully connected to server, safety state: {}", ServerSafetyState.getCurrent());
NCRCore.LOGGER.info("Successfully connected to server, safety state: {}", ServerSafetyState.getCurrent());
}

if (NCRConfig.getClient().demandOnServer() && !ServerSafetyState.getCurrent().isSecure()) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/aizistral/nochatreports/common/NCRCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public static void awaken(PlatformProvider platformProvider) {
}

private static void setup() {
LOGGER.info("KONNICHIWA ZA WARUDO!");
LOGGER.info("Default JVM text encoding is: " + Charset.defaultCharset().displayName());
LOGGER.debug("KONNICHIWA ZA WARUDO!");
LOGGER.debug("Default JVM text encoding is: " + Charset.defaultCharset().displayName());

NCRConfig.load();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Path getFile() {
}

public void saveFile() {
NCRCore.LOGGER.info("Writing config file {}...", this.fileName);
NCRCore.LOGGER.debug("Writing config file {}...", this.fileName);
writeFile(this.fileName, this);
}

Expand All @@ -44,7 +44,7 @@ protected void uponLoad() {
public abstract JSONConfig getDefault();

public static <T extends JSONConfig> T loadConfig(Class<T> configClass, Supplier<T> freshInstance, String fileName) {
NCRCore.LOGGER.info("Reading config file {}...", fileName);
NCRCore.LOGGER.debug("Reading config file {}...", fileName);
T config = readFile(fileName, configClass).orElseGet(freshInstance);
config.uponLoad();
return config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ private void getNoChatReports(ClientboundStatusResponsePacket packet, CallbackIn
}

static {
NCRCore.LOGGER.info("Common mixin into ServerStatusPinger$1 succeeded.");
if (NCRConfig.getCommon().enableDebugLog()) {
NCRCore.LOGGER.info("Common mixin into ServerStatusPinger$1 succeeded.");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MixinMinecraft {

@Inject(method = "run", at = @At("HEAD"))
private void onRun(CallbackInfo info) {
NCRCore.LOGGER.info("Game entered main loop!");
NCRCore.LOGGER.debug("Game entered main loop!");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public ServerData getServerData() {
}

static {
NCRCore.LOGGER.info("Fabric mixin into ServerStatusPinger$1 succeeded.");
NCRCore.LOGGER.debug("Fabric mixin into ServerStatusPinger$1 succeeded.");
}

}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/mixins/common/nochatreports.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"minVersion": "0.8",
"package": "com.aizistral.nochatreports.common.mixins",
"compatibilityLevel": "JAVA_17",
"verbose": true,
"mixins": [
"common.MixinServerStatus",
"common.MixinFriendlyByteBuf",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"minVersion": "0.8",
"package": "com.aizistral.nochatreports.fabric.mixins",
"compatibilityLevel": "JAVA_17",
"verbose": true,
"mixins": [
],
"client": [
Expand Down

0 comments on commit 45035e4

Please sign in to comment.