Skip to content

Commit

Permalink
fix(compatibility): fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMVoid95 committed Feb 12, 2022
1 parent 53bd329 commit d351bf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,9 @@ public double getMaxEnergy()
return this.getMaxEnergyStoredGC() / EnergyConfigHandler.MEKANISM_RATIO;
}

@Optional.Method(modid = "mekanism")
public boolean canOutputEnergy(EnumFacing side)
{
return false;
return this.getElectricalOutputDirections().contains(side);
}

@Optional.Method(modid = "mekanism")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@ public int getSourceTier()
return this.tierGC + 1;
}

@Override
@Optional.Method(modid = "mekanism")
public boolean canOutputEnergy(EnumFacing side)
{
return this.getElectricalOutputDirections().contains(side);
}

@Override
@Optional.Method(modid = "mekanism")
public double pullEnergy(EnumFacing side, double amount, boolean simulate)
Expand Down

0 comments on commit d351bf2

Please sign in to comment.