fixed essentia gens accepting essentia when full

This commit is contained in:
KiloJoel committed 2021-01-10 08:16:36 +00:00
1 parent dfb6ca1735
commit 632f0fb2f7
1 file changed
+4 -1
@@ -122,6 +122,9 @@ public class TileEntityBaseGenerator
if (!side)
return;
if (this.fuel == this.maxfuel)
return;
TileEntity[] te = new TileEntity[ForgeDirection.VALID_DIRECTIONS.length];
for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
te[i] = ThaumcraftApiHelper.getConnectableTile(this.worldObj, this.xCoord, this.yCoord, this.zCoord, ForgeDirection.VALID_DIRECTIONS[i]);
@@ -299,7 +302,7 @@ public class TileEntityBaseGenerator
}
public int getSuctionAmount(ForgeDirection face) {
return 128;
return this.fuel == this.maxfuel ? 0 : 128;
}
public int takeEssentia(Aspect aspect, int amount, ForgeDirection face) {