mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-23 00:49:33 +00:00
small fix
This commit is contained in:
@@ -16,7 +16,11 @@ public class NextSeason {
|
|||||||
case "winter" -> "spring";
|
case "winter" -> "spring";
|
||||||
default -> null;
|
default -> null;
|
||||||
};
|
};
|
||||||
|
if(nextSeason != null){
|
||||||
config.set("current-season", nextSeason);
|
config.set("current-season", nextSeason);
|
||||||
CustomCrops.instance.saveConfig();
|
CustomCrops.instance.saveConfig();
|
||||||
|
}else {
|
||||||
|
CustomCrops.instance.getLogger().warning("季节配置文件出错!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user