Skip to content
Improved Mobs Crash Fix

Quick rating

Community listing page, reviews may not be monitored by the author.

Improved Mobs Crash Fix

No reviews yet

Fixes the dedicated-server Cataclysm crash and the drowned "currentContext is null" crash in Improved Mobs.

Mod Loaders
Minecraft

About

Description

Improved Mobs Crash Fix

A tiny fix mod for Improved Mobs on Minecraft 1.21.1 (NeoForge). It adds nothing to the game. It just stops two crashes.

What it fixes

1. Dedicated servers failing to start (Improved Mobs issue #365) When the server loads, Improved Mobs creates every mob once to sort it into tags. Some mobs, like those from L_Ender's Cataclysm, use client-only code, which throws an error on a dedicated server and stops the server from loading. This fix skips those mobs during auto-tagging instead of crashing.

2. Drowned and water mobs crashing the game Crash message: Cannot invoke "PathfindingContext.level()" because "this.currentContext" is null. Improved Mobs' swim pathfinding reads data that vanilla hasn't set up when a drowned checks where it can move. This fix fills in that data for the check, so the drowned moves normally instead of crashing the server or singleplayer world.

Install

  • Requires Improved Mobs (1.21.1-1.16.0 or newer).
  • Works on both client and server. Put it in the server's mods folder at minimum. It's safe on clients too, and needed for singleplayer.
  • No config.

Notes

  • If Improved Mobs fixes these bugs itself, you can remove this mod.
  • Made for the modpack Viper's Kingdom - A Medieval Survival Challenge.
  • Questions or problems: https://discord.gg/H4EjXBwKT3

License: MIT