Skip to content

Only mine Ores of the same type #3

@recon88

Description

@recon88

In its current state, the mod mines all adjacent ores, no matter what type they are.
Example: Player mines Gold Ore but there's also Iron Ore next to it. Both will be mined.
Don't know if it's a change for the public but I've added the change for myself already.

for (LevelObject levelObject : adjacentObjects) {
            int currentTileX = levelObject.tileX;
            int currentTileY = levelObject.tileY;
           
            if (!levelObject.object.getStringID().equals(result.levelObject.object.getStringID())) {
                continue;
            }

            if (!shouldPropagate(levelObject.object) || (currentTileX != tileX && currentTileY != tileY)) {
                continue;
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions