A tiny Forge 1.18.2 compatibility mod that fixes a server-crash chunk-generation deadlock in the Isle of Berk HTTYD dragon mod by the GACMD team (Ghanou Craft, Apprentice Necromancer, TooTHleZZ & Arsian).
ℹ️ Isle of Berk itself is officially discontinued — this patch is for servers still running the final
isleofberk-1.2.0jar on 1.18.2 modpacks such as Isle of Berk (Claws of Berk) by kesselot.
If your server has been dying to ServerHangWatchdog with "A single server tick took 60.00 seconds" while IsleOfBerk is installed — this mod fixes it.
During worldgen, SpeedStinger.checkSpawnRules calls ADragonBase.isWaterBelow(), which performs a Level.getBlockState(BlockPos) read against the full ServerLevel. When that read targets a block in a neighbouring chunk that hasn't finished generating yet, the worldgen worker thread blocks inside ServerChunkCache.getChunk(...).join() waiting for a chunk that's waiting for it — a circular deadlock between Worker-Main-N threads.
After 60 seconds, the server watchdog fires and crashes the entire server.
Telltale symptom in your logs:
[Server Watchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
…with a stack landing in ServerChunkCache.getChunk under SpeedStinger.checkSpawnRules → ADragonBase.isWaterBelow.
A surgical Mixin (@Inject at HEAD of isWaterBelow()):
Worker-Main (i.e. worldgen), it short-circuits to false and returns immediately — no off-thread block read, no deadlock.DragonSleepGoal, AIDragonLand, etc.) run on the main Server thread and are completely unaffected — dragon behaviour is identical.@Pseudo so it loads cleanly even if IsleOfBerk is missing or refmap generation can't see the target class.| Spec | Value |
|---|---|
| Minecraft | 1.18.2 |
| Forge | 40.x+ |
| Loader | Forge (FML) |
| Side | Both (server-side fix; client copy is harmless) |
| Required mod | isleofberk ≥ 1.2.0 |
This mod only patches IsleOfBerk — zero interaction with other mods, safe to drop into any 1.18.2 modpack that includes IsleOfBerk (e.g. Claws of Berk).
Drop isleofberk-deadlockfix-1.0.0.jar into mods/ alongside isleofberk-1.2.0.jar.
Start the server. Confirm in the log: [IoB-DeadlockFix] Loaded. Mixin will short-circuit ADragonBase.isWaterBelow() during off-main-thread worldgen.
Enjoy a server that doesn't crash during chunk generation. 🎉