Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Dec 27, 2024
1 parent d9e8317 commit 5486577
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import java.util.List;
import java.util.Map;

import appeng.me.GridAccessException;
import appeng.me.cache.helpers.TunnelCollection;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextComponentTranslation;
Expand All @@ -29,6 +27,8 @@
import appeng.api.networking.IGrid;
import appeng.api.networking.security.ISecurityGrid;
import appeng.helpers.IInterfaceHost;
import appeng.me.GridAccessException;
import appeng.me.cache.helpers.TunnelCollection;
import appeng.parts.p2p.PartP2PTunnel;
import appeng.util.Platform;
import kotlin.Pair;
Expand Down Expand Up @@ -60,7 +60,8 @@ protected abstract PartP2PTunnel<?> updateP2P(P2PLocation key, PartP2PTunnel<?>
protected abstract void handleInterface(IInterfaceHost oldIn, IInterfaceHost oldOut, IInterfaceHost newIn,
IInterfaceHost newOut, List<ItemStack> drops);

@Shadow protected abstract PartP2PTunnel<?> changeP2PType(PartP2PTunnel<?> tunnel, TunnelInfo newType);
@Shadow
protected abstract PartP2PTunnel<?> changeP2PType(PartP2PTunnel<?> tunnel, TunnelInfo newType);

@Inject(method = "changeP2PType", at = @At("RETURN"), cancellable = true)
private void restoreName(PartP2PTunnel<?> tunnel, TunnelInfo newType,
Expand Down Expand Up @@ -92,7 +93,8 @@ private void properlyChangeAllP2PTypes(P2PLocation p2p, TunnelInfo newType, Call

try {
TunnelCollection<?> inputs = tunnel.getProxy().getP2P().getInputs(tunnel.getFrequency(), tunnel.getClass());
TunnelCollection<?> outputs = tunnel.getProxy().getP2P().getOutputs(tunnel.getFrequency(), tunnel.getClass());
TunnelCollection<?> outputs = tunnel.getProxy().getP2P().getOutputs(tunnel.getFrequency(),
tunnel.getClass());

for (var input : inputs) {
changeP2PType(input, newType);
Expand Down

0 comments on commit 5486577

Please sign in to comment.