MC Dungeons Weapons

MC Dungeons Weapons

14M Downloads

[Bug Report]: NullPointerException in DaggersID.getItem()

AyQWERTY opened this issue ยท 4 comments

commented

Describe the bug; What happened?

The server crashes randomly without any direct player interaction with daggers. No players have these items in their inventories when the crashes occur. Based on the crash reports, the issue sometimes happens during structure generation (e.g., mineshafts).

Expected Behavior

The server should not crash due to an issue with DaggersID.getItem(), especially when no players are interacting with these items.

Mod Version

9.0.4

Minecraft Launcher

None

Operating System

Linux

Modpack

Custom modpack for Minecraft 1.20.1

Additional context

There have been multiple crashes with the same error:

java.lang.NullPointerException: Cannot invoke "chronosacaria.mcdw.bases.McdwDagger.method_7854()" 
because the return value of "chronosacaria.mcdw.enums.DaggersID.getItem()" is null

The issue appears consistently across different crash reports, always pointing to DaggersID.getItem(). Based on logs, the crashes are not tied to direct player actions but seem to occur during unrelated game events, possibly structure generation or loot table interactions.

commented

Since mods are automatically updated, the message about needing to remove configs (when updating 9.0.1 -> 9.0.2) was missed.
After the removal it seems the problem is solved and the ticket can be closed

commented

@AyQWERTY could you post the whole log, please?

commented

@AyQWERTY thanks, mate. I'll take a look at this when I have a moment