HomeJavaModsIsleOfBerk-DeadLockFix
IsleOfBerk-DeadLockFix
ModsJava

IsleOfBerk-DeadLockFix

by OGPargon · on CurseForge

Written to fix a bug in Isle of Berk (Claw of Berk) where dragons would crash the server when "isWaterBelow()" is called.

⬇ Download on CurseForge

The author built this one for Minecraft 1.18.2 on Forge. On other versions it may install and then do nothing.

TheGameHosting

IsleOfBerk DeadlockFix

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.0 jar 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.


🐉 The Problem

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.


🔧 The Fix

A surgical Mixin (@Inject at HEAD of isWaterBelow()):


✅ Compatibility

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).


📦 Installation

  1. Drop isleofberk-deadlockfix-1.0.0.jar into mods/ alongside isleofberk-1.2.0.jar.

  2. Start the server. Confirm in the log: [IoB-DeadlockFix] Loaded. Mixin will short-circuit ADragonBase.isWaterBelow() during off-main-thread worldgen.

  3. Enjoy a server that doesn't crash during chunk generation. 🎉


📜 License & Source

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more