diff options
author | chill <chill.gtnh@outlook.com> | 2023-05-28 11:21:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 11:21:57 +0200 |
commit | 0f97af86a57831c358089b361ce9fc9c6ece12f7 (patch) | |
tree | 171435be2eab5a3b19f4180ed1a2dbf6c64362e9 /src/main/java/gregtech/api/items | |
parent | 9af741164c5b59c4d884aba48ebeab7db5442d63 (diff) | |
download | GT5-Unofficial-0f97af86a57831c358089b361ce9fc9c6ece12f7.tar.gz GT5-Unofficial-0f97af86a57831c358089b361ce9fc9c6ece12f7.tar.bz2 GT5-Unofficial-0f97af86a57831c358089b361ce9fc9c6ece12f7.zip |
simplify ifs (#2027)
Diffstat (limited to 'src/main/java/gregtech/api/items')
-rw-r--r-- | src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java b/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java index 1fcda9d84d..eb3c6276cf 100644 --- a/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java +++ b/src/main/java/gregtech/api/items/GT_CoolantCellIC_Item.java @@ -22,10 +22,7 @@ public class GT_CoolantCellIC_Item extends GT_CoolantCell_Item implements IReact @Override public boolean canStoreHeat(IReactor aReactor, ItemStack aStack, int x, int y) { - if (aReactor.isFluidCooled() && (getControlTagOfStack(aStack)) != 0) { - return false; - } - return true; + return !aReactor.isFluidCooled() || getControlTagOfStack(aStack) == 0; } @Override |