Replace all instance symlinks with their actual targets, effectively
"uninstalling" EnderChest
Parameters:
Name |
Type |
Description |
Default |
minecraft_root |
Path
|
The root directory that your minecraft stuff (or, at least, the one
that's the parent of your EnderChest folder)
|
required
|
Source code in enderchest/uninstall.py
| def break_ender_chest(minecraft_root: Path) -> None:
"""Replace all instance symlinks with their actual targets, effectively
"uninstalling" EnderChest
Parameters
----------
minecraft_root : Path
The root directory that your minecraft stuff (or, at least, the one
that's the parent of your EnderChest folder)
"""
instances = load_ender_chest_instances(minecraft_root, log_level=IMPORTANT)
if not instances:
BREAK_LOGGER.error("Aborting.")
return
BREAK_LOGGER.warning(
"Are you sure you want to uninstall this EnderChest?"
"\nDoing so will replace ALL the symlinks in each of the above instances"
"\nwith copies of their EnderChest-linked targets."
"\n\nTHIS CANNOT EASILY BE UNDONE!!"
)
if not confirm(default=False):
BREAK_LOGGER.error("Aborting.")
return
_break(fs.ender_chest_folder(minecraft_root), instances)
|