diff --git a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/ClientCommandPatch.java b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/ClientCommandPatch.java index 56592cd..de65d94 100644 --- a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/ClientCommandPatch.java +++ b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/ClientCommandPatch.java @@ -13,7 +13,12 @@ import java.util.List; * *
{@code
  * if (!ClientCommandHooks.onClientCommand(module, command, player, tbl))
- *     LuaEventManager.triggerEvent("OnClientCommand", module, command, player, tbl);
+ * {
+ *     LuaEventManager.triggerEvent(
+ *        "OnClientCommand", module,
+ *        command, player, tbl
+ *     );
+ * }
  * }
* * The arguments are the method's local variables of these names. diff --git a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/CommandListPatch.java b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/CommandListPatch.java index 4159dc8..9bc41f7 100644 --- a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/CommandListPatch.java +++ b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/patches/CommandListPatch.java @@ -15,7 +15,6 @@ import java.util.List; */ public final class CommandListPatch extends ReturnHookPatch { - /** The whole method: {@code getstatic childrenClasses}, {@code areturn}. */ private static final Anchor.Sequence ANCHOR = new Anchor.Sequence( new Anchor.Method("getSubClasses", "()[Ljava/lang/Class;"), new Anchor.Instruction.Opcode(Opcodes.GETSTATIC), diff --git a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/GameServerAssetLoadingPerformancePatch.java b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/GameServerAssetLoadingPerformancePatch.java index c45544f..6b249a3 100644 --- a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/GameServerAssetLoadingPerformancePatch.java +++ b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/GameServerAssetLoadingPerformancePatch.java @@ -15,14 +15,13 @@ import org.objectweb.asm.tree.MethodNode; * *
{@code
  * while (GameWindow.fileSystem.hasWork()) {
- *     AssetLoadingHooks.updateAsyncTransactions(GameWindow.fileSystem);   // was GameWindow.fileSystem.updateAsyncTransactions()
+ *     // GameWindow.fileSystem.updateAsyncTransactions()
+ *     AssetLoadingHooks.updateAsyncTransactions(GameWindow.fileSystem);
  * }
  * }
* * With the feature {@code experimental_performance} the hook grows the loader pool to one thread - * per CPU but one and parks the main thread between updates instead of spinning. Asset loading - * of an explored world: 4.8 to 3.2 s with 8 CPUs, 9.1 to 6.3 s with 4, 13.7 to 10.1 s with 2 - * (startup 15.9 to 13.7 s, 20.0 to 17.2 s, 28.4 to 25.0 s). Off, it makes the vanilla call. The + * per CPU but one and parks the main thread between updates instead of spinning. The * per-frame call in {@code GameServer.main} stays. */ public final class GameServerAssetLoadingPerformancePatch extends PerformancePatch diff --git a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/IsoChunkSaveDirectoryPerformancePatch.java b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/IsoChunkSaveDirectoryPerformancePatch.java index f24547d..0243d97 100644 --- a/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/IsoChunkSaveDirectoryPerformancePatch.java +++ b/compat/b42/patches/src/main/java/dev/overlord/zomboidforge/compat/b42/perf/IsoChunkSaveDirectoryPerformancePatch.java @@ -18,7 +18,7 @@ import java.util.List; * *
{@code
  * File testDir = ChunkMapFilenames.instance.getDir(Core.gameSaveWorld);
- * if (!testDir.exists()) {        // removed
+ * if (!testDir.exists()) { // removed
  *     testDir.mkdir();
  * }
  * }