9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-26 02:19:28 +00:00

fix worlds

This commit is contained in:
XiaoMoMi
2023-06-09 19:28:45 +08:00
parent e58c3d9284
commit 5d0dbeb658

View File

@@ -490,7 +490,7 @@ public class ConfigUtils {
if (ConfigManager.worldFolderPath.equals("")) {
file = new File(world.getWorldFolder(), "customcrops" + File.separator + fileName);
} else {
file = new File(ConfigManager.worldFolderPath, world + File.separator + "customcrops" + File.separator + fileName);
file = new File(ConfigManager.worldFolderPath, world.getName() + File.separator + "customcrops" + File.separator + fileName);
}
return file;
}