Skip to content

Commit de08a94

Browse files
committed
fix typo
1 parent 333314d commit de08a94

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/main/java/io/github/optijava/opt_carpet_addition/commands/CommandLoggerCommand.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public static void registerCommand(CommandDispatcher<ServerCommandSource> dispat
1919
}
2020

2121
public static int reload(CommandContext<ServerCommandSource> context) {
22-
CommandLogger.reload();
23-
return 1;
22+
return CommandLogger.reload();
2423
}
2524
}

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/async/MinecraftServer_Mixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void injectShutdown(CallbackInfo ci) {
4040
public void injectTickWorlds(BooleanSupplier shouldKeepTicking, CallbackInfo ci, @SuppressWarnings("all") Iterator var2, ServerWorld serverWorld, Throwable throwable) {
4141
if (OptCarpetSettings.optimizePlayerConnect && (throwable instanceof ConcurrentModificationException)) {
4242
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] Unexpected exception when ticking world: " + serverWorld.toString(), throwable);
43-
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] If you see this message, you may need to restart the server. This exception may caused by OptCarpetAddition, if you think so, please send the reports to GitHub Issues.");
43+
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] If you see this message, you may need to restart the server. This exception may cause by OptCarpetAddition, if you think so, please send the reports to GitHub Issues.");
4444
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] I'm sorry to hear that.");
4545
ci.cancel();
4646
}

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/async/optimizePlayerConnect/World_Mixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class World_Mixin {
2727
public void injectTickWorlds(@SuppressWarnings("all") Consumer tickConsumer, Entity entity, CallbackInfo ci, Throwable throwable) {
2828
if (OptCarpetSettings.optimizePlayerConnect && (throwable instanceof ConcurrentModificationException)) {
2929
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] Unexpected exception when ticking entity: %s (class %s) in BlockPos %s (in chunk %s %s %s)".formatted(entity.toString(), entity.getClass().toString(), entity.getBlockPos().toString(), entity.getBlockX() / 16, entity.getBlockY() / 16, entity.getBlockZ() / 16), throwable);
30-
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] If you see this message, you may need to restart the server. This exception may caused by OptCarpetAddition, if you think so, please send the reports to GitHub Issues.");
30+
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] If you see this message, you may need to restart the server. This exception may cause by OptCarpetAddition, if you think so, please send the reports to GitHub Issues.");
3131
OptCarpetAddition.LOGGER.fatal("[OptCarpetAddition] I'm sorry to hear that.");
3232
ci.cancel();
3333
}

0 commit comments

Comments
 (0)