Skip to content

[BUG] ReactorPowerTapTile.java does not invalidate capabilities #98

@TeamDman

Description

@TeamDman

ReactorPowerTapTile.java and its ancestors ReactorBaseTile and PhosphophylliteTile do not override invalidateCaps

PhosphophylliteTile.java::onRemove(boolean chunkUnload) (a Phos mod method) is overridden by PowerBlackHoleTile.java to invalidate the capability apparently

    @Override
    public void onRemoved(boolean chunkUnload) {
        energyHandler.invalidate();
    }

but for ReactorPowerTapTile.java I don't see it doing anything similar.

I put a breakpoint on private void invalidate(LazyOptional<IPhosphophylliteEnergyHandler> ignored) { inside IEnergyTile.java and it doesn't get hit when the chunk is being unloaded.

My mod's invalidation listener isn't getting fired which is how I found this :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions