From aa85afa2d0510c2bf75d46119b625a7161360512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dumitru=20Mi=C8=9Bca?= Date: Thu, 3 Oct 2024 22:34:03 +0300 Subject: [PATCH] Use smart cable connection type for ME Parts (#2087) --- gradlew | 0 .../ae2/machine/feature/IGridConnectedMachine.java | 7 +++++++ 2 files changed, 7 insertions(+) mode change 100644 => 100755 gradlew diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/feature/IGridConnectedMachine.java b/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/feature/IGridConnectedMachine.java index 898cdd29e5..8285d76663 100644 --- a/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/feature/IGridConnectedMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/feature/IGridConnectedMachine.java @@ -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; /** @@ -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. *