aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java
diff options
context:
space:
mode:
authorboubou19 <miisterunknown@gmail.com>2023-04-01 18:11:43 +0200
committerGitHub <noreply@github.com>2023-04-01 18:11:43 +0200
commit5f50e4a36ec000657b0a1664784acf00275293c6 (patch)
tree5ef81441032735438c9fd9c620224ca58e46e537 /src/main/java/gregtech/api/util/GT_Shaped_Recipe.java
parent6b77557e0e87cf5afd9ebd3985323ff1249e615c (diff)
downloadGT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.tar.gz
GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.tar.bz2
GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.zip
update spotless formatting (#1827)
Diffstat (limited to 'src/main/java/gregtech/api/util/GT_Shaped_Recipe.java')
-rw-r--r--src/main/java/gregtech/api/util/GT_Shaped_Recipe.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java b/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java
index 62096c1ebd..982c0e8f35 100644
--- a/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java
+++ b/src/main/java/gregtech/api/util/GT_Shaped_Recipe.java
@@ -36,9 +36,12 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec
for (int i = 0; i < aGrid.getSizeInventory(); i++) {
if (aGrid.getStackInSlot(i) != null) {
if (tStack != null) {
- if ((tStack.hasTagCompound() != aGrid.getStackInSlot(i).hasTagCompound())
- || (tStack.hasTagCompound()
- && !tStack.getTagCompound().equals(aGrid.getStackInSlot(i).getTagCompound())))
+ if ((tStack.hasTagCompound() != aGrid.getStackInSlot(i)
+ .hasTagCompound())
+ || (tStack.hasTagCompound() && !tStack.getTagCompound()
+ .equals(
+ aGrid.getStackInSlot(i)
+ .getTagCompound())))
return false;
}
tStack = aGrid.getStackInSlot(i);
@@ -57,8 +60,12 @@ public class GT_Shaped_Recipe extends ShapedOreRecipe implements IGT_CraftingRec
// Keeping NBT
if (mKeepingNBT) for (int i = 0; i < aGrid.getSizeInventory(); i++) {
- if (aGrid.getStackInSlot(i) != null && aGrid.getStackInSlot(i).hasTagCompound()) {
- rStack.setTagCompound((NBTTagCompound) aGrid.getStackInSlot(i).getTagCompound().copy());
+ if (aGrid.getStackInSlot(i) != null && aGrid.getStackInSlot(i)
+ .hasTagCompound()) {
+ rStack.setTagCompound(
+ (NBTTagCompound) aGrid.getStackInSlot(i)
+ .getTagCompound()
+ .copy());
break;
}
}