package com.agricraft.agricore.defaults;

import com.agricraft.agricore.core.AgriCore;
import com.agricraft.agricore.util.AgriValidator;

import javax.annotation.Nonnull;

public class AgriDefaultValidator implements AgriValidator {
    @Override
    public <T> boolean isValidObject(Class<T> token, String object) {
        if (object == null) {
            AgriCore.getCoreLogger().warn("Null Object!");
            return false;
        }
        AgriCore.getCoreLogger().warn("Faking valid result for object: " + object + "!");
        return true;
    }

    @Override
    @Nonnull
    @SuppressWarnings("unchecked")
    public <T> Class<T> getTokenClass(String token) {
        return (Class<T>) Object.class;
    }

    @Override
    public boolean isValidSeason(String season) {
        return false;
    }

    @Override
    public boolean isValidResource(String resource) {
        if (resource == null) {
            AgriCore.getCoreLogger().warn("Null Texture!");
            return false;
        }
        AgriCore.getCoreLogger().warn("Faking valid result for texture: " + resource + "!");
        return true;
    }

    @Override
    public boolean isValidCallback(String callback) {
        return true;
    }

    @Override
    public boolean isValidHumidity(String humidity) {
        return true;
    }

    @Override
    public boolean isValidAcidity(String acidity) {
        return true;
    }

    @Override
    public boolean isValidNutrients(String nutrients) {
        return true;
    }

    @Override
    public boolean isValidMod(String modid) {
        if (modid == null) {
            AgriCore.getCoreLogger().warn("Null Mod Id!");
            return false;
        }
        AgriCore.getCoreLogger().warn("Faking valid result for modid: " + modid + "!");
        return true;
    }

}

package com.agricraft.agricore.defaults;

import com.agricraft.agricore.core.AgriCore;
import com.agricraft.agricore.util.AgriValidator;

import javax.annotation.Nonnull;

public class AgriDefaultValidator implements AgriValidator {
    @Override
    public <T> boolean isValidObject(Class<T> token, String object) {
        if (object == null) {
            AgriCore.getCoreLogger().warn("Null Object!");
            return false;
        }
        AgriCore.getCoreLogger().warn("Faking valid result for object: " + object + "!");
        return true;
    }

    @Override
    @Nonnull
    @SuppressWarnings("unchecked")
    public <T> Class<T> getTokenClass(String token) {
        return (Class<T>) Object.class;
    }

    @Override
    public boolean isValidSeason(String season) {
        return true;
    }

    @Override
    public boolean isValidResource(String resource) {
        if (resource == null) {
            AgriCore.getCoreLogger().warn("Null Texture!");
            return false;
        }
        AgriCore.getCoreLogger().warn("Faking valid result for texture: " + resource + "!");
        return true;
    }

    @Override
    public boolean isValidCallback(String callback) {
        return true;
    }

    @Override
    public boolean isValidHumidity(String humidity) {
        return true;
    }

    @Override
    public boolean isValidAcidity(String acidity) {
        return true;
    }

    @Override
    public boolean isValidNutrients(String nutrients) {
        return true;
    }

    @Override
    public boolean isValidMod(String modid) {
        if (modid == null) {
            AgriCore.getCoreLogger().warn("Null Mod Id!");
            return false;
        }
        AgriCore.getCoreLogger().warn("Faking valid result for modid: " + modid + "!");
        return true;
    }

}

Fix Default validator returning false for the seasons