9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

移除历史遗留代码

This commit is contained in:
XiaoMoMi
2025-11-15 20:19:07 +08:00
parent 2591f02da0
commit a8eca7edc1

View File

@@ -223,19 +223,6 @@ public class BukkitCraftEngine extends CraftEngine {
super.seatManager = new BukkitSeatManager(this); super.seatManager = new BukkitSeatManager(this);
super.onPluginEnable(); super.onPluginEnable();
super.compatibilityManager().onEnable(); super.compatibilityManager().onEnable();
// todo 未来版本移除
Path legacyFile1 = this.dataFolderPath().resolve("additional-real-blocks.yml");
Path legacyFile2 = this.dataFolderPath().resolve("mappings.yml");
if (Files.exists(legacyFile1)) {
try {
Files.delete(legacyFile1);
Files.deleteIfExists(legacyFile2);
this.saveResource("resources/internal/configuration/mappings.yml");
} catch (IOException e) {
this.logger.warn("Failed to delete legacy files", e);
}
}
} }
@Override @Override