Skip to content

The miner can't find the mine #11593

@Dinotanker

Description

@Dinotanker

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

Image

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

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugGotta squash 'em all!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions