HomeJavaMods诡厄巫法召唤物崩溃补丁
诡厄巫法召唤物崩溃补丁
ModsJava

诡厄巫法召唤物崩溃补丁

by 3569863219 · on Modrinth

⬇ Download on Modrinth

Goety Owned Null Guard Fix

A tiny (~3KB) Forge 1.20.1 patch that fixes a recurring crash from Goety summons.

The Problem

When Goety summons such as Inferno or ZombieServant take damage, the game can crash with a "Ticking entity" NullPointerException. It happens most often in the Nether, with multiple same-type summons nearby, or with ownerless summons. The crash stack always points at Owned.java:186 -> Entity.java:2236.

Root Cause

Goety's Owned.isAlliedTo(Entity) forwards a null entity to vanilla Entity.isAlliedTo. The hurt-revenge target AI passes a cleared lastHurtByMob() value while propagating damage to nearby same-type mobs, and vanilla 1.20.1 dereferences the argument without a null check (p.getTeam()) -> NPE.

The Fix

A mixin injects a null guard at the entry of Owned.isAlliedTo: it returns false for a null argument (a null entity can never be an ally). No gameplay balance and no AI behaviour changes - it is a pure null-safety fix.

Compatibility

Thanks to Polarice3 for Goety (https://github.com/Polarice3/Goety-2).

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

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

Explore more