Geomastery.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:geomastery 作者:
@NetworkCheckHandler
public static boolean networkCheck(Map<String, String> mods, Side side) {

    if (mods.containsKey(MODID)) {

        if (COMPATIBLE_RANGE.containsVersion(new DefaultArtifactVersion(mods.get(MODID)))) {

            LOG.info("{} version {} compatible with version {} {}, allowing connection", MODID, VERSION, mods.get(MODID), side);
            return true;
        }

        LOG.info("{} version {} not compatible with version {} {}, denying connection", MODID, VERSION, mods.get(MODID), side);
        return false;
    }

    LOG.info("{} not found on {}, denying connection", MODID, side);
    return false;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号