Skip to content

MultiblockControllerBase.hasBlock() is always false #8

@mezz

Description

@mezz

https://github.com/erogenousbeef/BeefCore/blob/master/src/main/java/erogenousbeef/core/multiblock/MultiblockControllerBase.java#L95-L102

/**
 * Check if a block is being tracked by this machine.
 * @param blockCoord Coordinate to check.
 * @return True if the tile entity at blockCoord is being tracked by this machine, false otherwise.
 */
public boolean hasBlock(CoordTriplet blockCoord) {
    return connectedParts.contains(blockCoord);
}

connectedParts is a Set<IMultiblockPart> but this method is checking if it contains a CoordTriplet.

I don't think it's used in BigReactors either, so maybe it should be removed.

(I'm toying with making Forestry Multiblocks use BeefCore)

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