<commit_before>package mcjty.deepresonance.blocks.valve;

import elec332.core.world.WorldHelper;
import mcjty.deepresonance.blocks.tank.ITankHook;
import mcjty.deepresonance.blocks.tank.TileTank;
import mcjty.deepresonance.config.ConfigMachines;
import mcjty.deepresonance.fluid.DRFluidRegistry;
import mcjty.deepresonance.fluid.LiquidCrystalFluidTagData;
import mcjty.lib.entity.GenericTileEntity;
import mcjty.lib.network.Argument;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;

import java.util.Map;

public class ValveTileEntity extends GenericTileEntity implements ITankHook, ITickable {

    public static String CMD_SETTINGS = "settings";

    public ValveTileEntity() {
    }

    private TileTank bottomTank;
    private TileTank topTank;
    private int progress = 0;

    private float minPurity = 84;
    private float minStrength = 0;
    private float minEfficiency = 0;
    private int maxMb = 0;

    @Override
    public void update() {
        if (!worldObj.isRemote){
            checkStateServer();
        }
    }

    private void checkStateServer() {
        progress--;
        markDirty();
        if (progress > 0) {
            return;
        }
        progress = ConfigMachines.Valve.ticksPerOperation;

        if (topTank == null || bottomTank == null) {
            return;
        }<commit_msg>Wrong default for valve<commit_after>package mcjty.deepresonance.blocks.valve;

import elec332.core.world.WorldHelper;
import mcjty.deepresonance.blocks.tank.ITankHook;
import mcjty.deepresonance.blocks.tank.TileTank;
import mcjty.deepresonance.config.ConfigMachines;
import mcjty.deepresonance.fluid.DRFluidRegistry;
import mcjty.deepresonance.fluid.LiquidCrystalFluidTagData;
import mcjty.lib.entity.GenericTileEntity;
import mcjty.lib.network.Argument;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;

import java.util.Map;

public class ValveTileEntity extends GenericTileEntity implements ITankHook, ITickable {

    public static String CMD_SETTINGS = "settings";

    public ValveTileEntity() {
    }

    private TileTank bottomTank;
    private TileTank topTank;
    private int progress = 0;

    private float minPurity = 84.0f / 100.0f;
    private float minStrength = 0;
    private float minEfficiency = 0;
    private int maxMb = 0;

    @Override
    public void update() {
        if (!worldObj.isRemote){
            checkStateServer();
        }
    }

    private void checkStateServer() {
        progress--;
        markDirty();
        if (progress > 0) {
            return;
        }
        progress = ConfigMachines.Valve.ticksPerOperation;

        if (topTank == null || bottomTank == null) {
            return;
        }
{'fraction_non_alphanumeric': 0.08840673575129533, 'fraction_numerical': 0.008095854922279792, 'mean_word_length': 3.39402560455192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1373435', 'n_tokens_mistral': 1033, 'n_tokens_neox': 959, 'n_words': 198}