From 671709bcb69227a461cbc989f065803fe086837b Mon Sep 17 00:00:00 2001 From: GitHub GTNH Actions <> Date: Thu, 14 May 2026 17:14:55 +0000 Subject: [PATCH] spotlessApply --- .../items/energy/ItemAttunedCrystal.java | 19 ++++++------------- .../items/energy/ItemDestinationClearer.java | 3 +-- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemAttunedCrystal.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemAttunedCrystal.java index ce5393baf..3976be96f 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemAttunedCrystal.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemAttunedCrystal.java @@ -169,9 +169,7 @@ public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer } // Re-clicking the saved source cycles its reagents, never tries to self-link. - if (dimension == world.provider.dimensionId && coords.x() == x - && coords.y() == y - && coords.z() == z) { + if (dimension == world.provider.dimensionId && coords.x() == x && coords.y() == y && coords.z() == z) { List reagentList = collectReagents(relay); if (reagentList.size() <= 1) { player.addChatComponentMessage( @@ -199,21 +197,18 @@ public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer if (!(pastTile instanceof TEReagentConduit pastRelay)) { // Saved source is gone — clear it so the player can start over without a manual reset. this.setHasSavedCoordinates(itemStack, false); - player.addChatComponentMessage( - new ChatComponentTranslation("message.attunedcrystal.error.cannotfind")); + player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.error.cannotfind")); return itemStack; } Reagent reagent = this.getReagent(itemStack); if (reagent == null) { - player.addChatComponentMessage( - new ChatComponentTranslation("message.attunedcrystal.error.noreagent")); + player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.error.noreagent")); return itemStack; } if (pastRelay.hasReagentDestination(reagent, x, y, z)) { - player.addChatComponentMessage( - new ChatComponentTranslation("message.attunedcrystal.error.duplicate")); + player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.error.duplicate")); } else if (pastRelay.addReagentDestinationViaActual(reagent, x, y, z)) { int used = pastRelay.getTotalConnections(); int max = pastRelay.maxConnextions; @@ -232,16 +227,14 @@ public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer // No saved source — this click saves one and (when useful) copies its reagent. if (tile instanceof TEReagentConduit conduit && conduit.getTotalConnections() >= conduit.maxConnextions) { - player.addChatComponentMessage( - new ChatComponentTranslation("message.attunedcrystal.error.sourcefull")); + player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.error.sourcefull")); return itemStack; } List reagentList = collectReagents(relay); Reagent currentReagent = this.getReagent(itemStack); if (reagentList.isEmpty() && currentReagent == null) { - player.addChatComponentMessage( - new ChatComponentTranslation("message.attunedcrystal.error.nothingtocopy")); + player.addChatComponentMessage(new ChatComponentTranslation("message.attunedcrystal.error.nothingtocopy")); return itemStack; } diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemDestinationClearer.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemDestinationClearer.java index 3acc5ed9a..341744d1a 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemDestinationClearer.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/energy/ItemDestinationClearer.java @@ -96,8 +96,7 @@ private static int clearIncomingConnections(World world, int x, int y, int z) { Iterator it = coords.iterator(); while (it.hasNext()) { Int3 off = it.next(); - if (src.xCoord + off.x() == x && src.yCoord + off.y() == y - && src.zCoord + off.z() == z) { + if (src.xCoord + off.x() == x && src.yCoord + off.y() == y && src.zCoord + off.z() == z) { it.remove(); changed = true; totalRemoved++;