/
minecraftbackup
/
ViaRewind
Обзор
Документация
Войти
/
minecraftbackup
/
ViaRewind
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
fabric/src/main/java/com/viaversion/viarewind/ViaFabricAddon.java
49 строк
2 KB
FlorianMichael
Tidy up a few things and fixed tons of bugs
23 апр 2024, 23:29
Не верифицирован
23 апр 2024, 23:29
8a5d826
Код
Авторство
О чём код?
/* * This file is part of ViaRewind - https://github.com/ViaVersion/ViaRewind * Copyright (C) 2018-2024 ViaVersion and contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.viaversion.viarewind; import com.viaversion.viarewind.api.ViaRewindPlatform; import com.viaversion.viarewind.fabric.util.LoggerWrapper; import net.fabricmc.loader.api.FabricLoader; import org.apache.logging.log4j.LogManager; import java.io.File; import java.nio.file.Path; import java.util.logging.Logger; public class ViaFabricAddon implements ViaRewindPlatform, Runnable { private final Logger logger = new LoggerWrapper(LogManager.getLogger("ViaRewind")); private File configDir; @Override public void run() { final Path configDirPath = FabricLoader.getInstance().getConfigDir().resolve("ViaRewind"); this.configDir = configDirPath.toFile(); this.init(new File(getDataFolder(), "config.yml")); } @Override public File getDataFolder() { return this.configDir; } @Override public Logger getLogger() { return this.logger; } }