Skip to content

[BUG] MobOwner crashes client when rendering nametag #2081

@VadimTotok

Description

@VadimTotok

Describe the bug
MobOwner causes the client to crash with a NullPointerException when rendering owner information for an ender pearl entity.

The crash only occurs when the pearl is visible on screen and MobOwner attempts to render its owner information. If the entity remains outside the camera view, the game does not crash.

To Reproduce

  1. Enable MobOwner module
  2. Join a multiplayer server
  3. Look at an ender pearl entity
  4. The client crashes immediately
net.minecraft.class_148: Rendering entity in world
	at knot//net.minecraft.class_898.method_72976(class_898.java:180)
	...
Caused by: java.lang.NullPointerException
	at org.rusherhack.client.impl.ʡ.h(ʡ.java)
	at org.rusherhack.client.impl.ʡ.Ʌ(ʡ.java:48)
	at org.rusherhack.core.event.subscribe.MethodSubscriber.invoke(MethodSubscriber.java:59)
	at org.rusherhack.core.event.EventBus.post(EventBus.java:172)
	at org.rusherhack.core.event.EventBus.post(EventBus.java:140)
	at org.rusherhack.mixin.MixinHelper.b(MixinHelper.java)
	at org.rusherhack.mixin.MixinHelper.onRenderEntityNametag(MixinHelper.java:1187)
	at knot//net.minecraft.class_897.handler$ble000$preSubmitNametag(class_897.java:2536)
	...
---- Minecraft Crash Report ----
// This is a token for 1 free hug...
Time: 2026-06-04 10:13:00
Description: Rendering entity in world
java.lang.NullPointerException: Rendering entity in world
	at org.rusherhack.client.impl.ʡ.h(ʡ.java)
	at org.rusherhack.client.impl.ʡ.Ʌ(ʡ.java:48)
	...
	at org.rusherhack.mixin.MixinHelper.onRenderEntityNametag(MixinHelper.java:1187)
	...
-- EntityRenderState being rendered --

Additional context
Minecraft Version: 1.21.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions