Skip to content

Commit

Permalink
Use smart cable connection type for ME Parts (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealKC authored Oct 3, 2024
1 parent 3279b62 commit aa85afa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Empty file modified gradlew
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import com.gregtechceu.gtceu.api.machine.feature.IMachineFeature;
import com.gregtechceu.gtceu.config.ConfigHolder;

import net.minecraft.core.Direction;

import appeng.api.networking.IGridNodeListener;
import appeng.api.util.AECableType;
import appeng.me.helpers.IGridConnectedBlockEntity;

/**
Expand All @@ -30,6 +33,10 @@ default boolean shouldSyncME() {
return self().getOffsetTimer() % ME_UPDATE_INTERVAL == 0;
}

default AECableType getCableConnectionType(Direction dir) {
return AECableType.SMART;
}

/**
* Update me network connection status.
*
Expand Down

0 comments on commit aa85afa

Please sign in to comment.