Skip to content

Commit

Permalink
1.7.10-0.3.5e
Browse files Browse the repository at this point in the history
HBM Energy API fix
  • Loading branch information
Zuxelus committed May 27, 2024
1 parent 3a98892 commit 135ac41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {

apply plugin: 'forge'

version = "1.7.10-0.3.5d"
version = "1.7.10-0.3.5e"
group= "com.zuxelus.energycontrol"
archivesBaseName = "EnergyControl"

Expand Down Expand Up @@ -47,7 +47,7 @@ dependencies {
'libs_/gregtech_1.7.10-6.17.01.jar',
'libs_/GalacticraftCore-1.7-3.0.12.504.jar',
'libs_/Galacticraft-Planets-1.7-3.0.12.504.jar',
'libs_/HBM-NTM-.1.0.27_X4880.jar',
'libs_/HBM-NTM-.1.0.27_X4977.jar',
'libs_/industrialcraft-2-2.2.827-experimental-dev.jar',
'libs_/Mekanism-1.7.10-9.1.1.1031.jar',
'libs_/NotEnoughItems-1.7.10-1.0.5.120-universal.jar',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static void preInit() {
Matcher matcher = Pattern.compile("\\d\\d\\d\\d").matcher(container.getVersion());
if (matcher.find()) {
int version = Integer.parseInt(container.getVersion().substring(matcher.start(), matcher.end()));
if (version >= 4880)
if (version >= 4977)
loadCrossModSafely(ModIDs.HBM, () -> CrossHBM::new);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.zuxelus.zlib.tileentities.ITilePacketHandler;
import com.zuxelus.zlib.tileentities.TileEntityInventory;

import api.hbm.energy.IEnergyUser;
import api.hbm.energymk2.IEnergyReceiverMK2;
import cofh.api.energy.IEnergyReceiver;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Optional;
Expand All @@ -32,10 +32,10 @@

@Optional.InterfaceList({
@Optional.Interface(modid = ModIDs.IC2, iface = "ic2.api.energy.tile.IEnergySink"),
@Optional.Interface(modid = ModIDs.HBM, iface = "api.hbm.energy.IEnergyUser"),
@Optional.Interface(modid = ModIDs.HBM, iface = "api.hbm.energymk2.IEnergyReceiverMK2"),
@Optional.Interface(modid = ModIDs.THERMAL_EXPANSION, iface = "cofh.redstoneflux.api.IEnergyReceiver"),
})
public class TileEntityKitAssembler extends TileEntityInventory implements ITilePacketHandler, ISlotItemFilter, IEnergySink, IEnergyUser, IEnergyReceiver {
public class TileEntityKitAssembler extends TileEntityInventory implements ITilePacketHandler, ISlotItemFilter, IEnergySink, IEnergyReceiverMK2, IEnergyReceiver {
public static final byte SLOT_INFO = 0;
public static final byte SLOT_CARD1 = 1;
public static final byte SLOT_ITEM = 2;
Expand Down Expand Up @@ -201,7 +201,8 @@ public void updateEntity() {
return;
handleDischarger(SLOT_DISCHARGER);
if (Loader.isModLoaded(ModIDs.HBM))
updateStandardConnections(worldObj, xCoord, yCoord, zCoord);
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS)
trySubscribe(worldObj, xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ, dir);
if (!active)
return;
if (storage.getEnergyStored() >= CONSUMPTION) {
Expand Down

0 comments on commit 135ac41

Please sign in to comment.