IsleOfBerk-DeadLockFix

Quick rating

IsleOfBerk-DeadLockFix

No reviews yet

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

Bug Fixes
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
isleofberk-deadlockfix-1.0.1.jar
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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()):

  • If the calling thread name starts with Worker-Main (i.e. worldgen), it short-circuits to false and returns immediately — no off-thread block read, no deadlock.
  • Worldgen spawn checks are the only off-main caller of this method, so the short-circuit only affects spawn-placement decisions during chunk generation (SpeedStingers still spawn fine; they just skip their water check during worldgen).
  • All live AI uses (DragonSleepGoal, AIDragonLand, etc.) run on the main Server thread and are completely unaffected — dragon behaviour is identical.
  • Uses @Pseudo so it loads cleanly even if IsleOfBerk is missing or refmap generation can't see the target class.

✅ 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

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~79,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works