9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00

small fix

This commit is contained in:
Xiao-MoMi
2022-05-23 17:44:43 +08:00
parent 1a6cb414a5
commit ac17f2b278

View File

@@ -16,7 +16,11 @@ public class NextSeason {
case "winter" -> "spring";
default -> null;
};
config.set("current-season", nextSeason);
CustomCrops.instance.saveConfig();
if(nextSeason != null){
config.set("current-season", nextSeason);
CustomCrops.instance.saveConfig();
}else {
CustomCrops.instance.getLogger().warning("季节配置文件出错!");
}
}
}