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:
@@ -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("季节配置文件出错!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user