-
-
Notifications
You must be signed in to change notification settings - Fork 399
The miner can't find the mine #11593
Description
Is there an existing issue for this?
- I have searched the existing issues.
Are you using the latest MineColonies Version?
- I am running the latest beta/release version of MineColonies for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
Did you check on the Wiki? or ask on Discord?
- I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
What were you playing at the time? Were you able to reproduce it in both settings?
- Single Player
- Multi Player
Minecraft Version
1.20
MineColonies Version
1.20.1-1.1.1195
Structurize Version
1,20.1-1.0.804
Related Mods and their Versions
No response
Current Behavior
Expected Behavior
Starting at 16:17:24 and repeating with increasing pause time (100, 200, 400, 800, 1600 seconds), the same error occurs for citizen Bentlee U. Colmer (miner):
text
java.lang.NullPointerException: Cannot invoke "com.minecolonies.core.entity.ai.workers.util.MineNode.getParent()" because the return value of "com.minecolonies.core.colony.buildings.modules.MinerLevelManagementModule.getActiveNode()" is null
What does it mean:
The miner is trying to do his job (the mine).
To do this, he needs to know which node (MineNode) in the mine he should be developing now.
It requests this node from the mine management module (MinerLevelManagementModule).
The module returns null (that is, "there is no node").
The miner, having not received the node, tries to call the method.getParent() is null for this, which causes the error (NullPointerException).
Reproduction Steps
- Set up a mine 2. Give the miner a task to dig a certain level 3. The miner issues this error
Logs
<script src="https://gist.github.com/Dinotanker/bac30a13c38001438919c726d400b906.js"></script>Anything else?
No response
Footer
Viewers
- Add a 👍 reaction to the bug report if you are also affected. This helps the bug report become more visible without cluttering the comments.
⚠️ Only add a comment if you have new insights or background information not already mentioned. Off-topic or "+1" comments will be deleted to keep the discussion focused.