aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2022-06-01 20:36:42 +0900
committerGitHub <noreply@github.com>2022-06-01 13:36:42 +0200
commit8bde03f5330693cfb1c04c256af87f57ac86ca18 (patch)
treeead2b18588fe71c15997b802b72942ff33916f2e /src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations
parent6be27cf6dfaa474b36172a88568d375d7bb1c9fc (diff)
downloadGT5-Unofficial-8bde03f5330693cfb1c04c256af87f57ac86ca18.tar.gz
GT5-Unofficial-8bde03f5330693cfb1c04c256af87f57ac86ca18.tar.bz2
GT5-Unofficial-8bde03f5330693cfb1c04c256af87f57ac86ca18.zip
Fixes (#198)
* Fix IsaMill controller GUI void items * Add structure check for Milling Ball Housing * Fix internal crash that was handled somewhere else * Fix ore type can be locked to 0 * Add scan result for locked ore type * Fix height in tooltip * Delegate to native isRecipeInputEqual * Don't consume energy to fill water * Fix flowing water is not filled sometimes * Add info about filling water * Fix carelessness * Fix flowing water in Algae Farm
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
index 1232166baa..009530c447 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java
@@ -914,7 +914,7 @@ public abstract class GregtechMeta_MultiBlockBase<T extends GT_MetaTileEntity_En
public long getMaxInputEnergy() {
long rEnergy = 0;
- if (mEnergyHatches.size() < 2) // so it only takes 1 amp is only 1 hatch is present so it works like most gt multies
+ if (mEnergyHatches.size() == 1) // so it only takes 1 amp is only 1 hatch is present so it works like most gt multies
return mEnergyHatches.get(0).getBaseMetaTileEntity().getInputVoltage();
for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches)
if (isValidMetaTileEntity(tHatch)) rEnergy += tHatch.getBaseMetaTileEntity().getInputVoltage() * tHatch.getBaseMetaTileEntity().getInputAmperage();