Skip to content

Commit d351bf2

Browse files
committed
fix(compatibility): fixes #48
1 parent 53bd329 commit d351bf2

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/main/java/micdoodle8/mods/galacticraft/core/energy/tile/TileBaseUniversalElectrical.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,9 @@ public double getMaxEnergy()
452452
return this.getMaxEnergyStoredGC() / EnergyConfigHandler.MEKANISM_RATIO;
453453
}
454454

455-
@Optional.Method(modid = "mekanism")
456455
public boolean canOutputEnergy(EnumFacing side)
457456
{
458-
return false;
457+
return this.getElectricalOutputDirections().contains(side);
459458
}
460459

461460
@Optional.Method(modid = "mekanism")

src/main/java/micdoodle8/mods/galacticraft/core/energy/tile/TileBaseUniversalElectricalSource.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,6 @@ public int getSourceTier()
192192
return this.tierGC + 1;
193193
}
194194

195-
@Override
196-
@Optional.Method(modid = "mekanism")
197-
public boolean canOutputEnergy(EnumFacing side)
198-
{
199-
return this.getElectricalOutputDirections().contains(side);
200-
}
201-
202195
@Override
203196
@Optional.Method(modid = "mekanism")
204197
public double pullEnergy(EnumFacing side, double amount, boolean simulate)

0 commit comments

Comments
 (0)