mcaselector
mcaselector copied to clipboard
Unable to delete individual chunks, only whole regions
Describe the bug When selecting some chunks within a region and then deleting them, the deletion does not actually happen. Only when you select enough chunks to cover a whole region (or select entire regions), the chunks within those regions (i.e. whole regions ) are deleted.
To Reproduce Steps to reproduce the behavior:
- Launch MCA Selector (GUI)
- Open a World
- Select some chunks (without selecting an entire region)
- Press Ctrl+D to delete selected chunks
- After a few seconds, notice that once the display refreshes, the previously selected chunks are still there
Expected behavior When selecting some chunks and deleting them, I expect them to be deleted.
Screenshots and other files Found some warning messages in the log:
21:07:38.722 [savePool-thread-1] WARN SelectionDeleter: failed to delete selected chunks from r.-6.0.mca
java.nio.file.AccessDeniedException: C:\Users\XXXX\AppData\Roaming\.minecraft\saves\World10c\region\r.-6.0.mca
at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source) ~[?:?]
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[?:?]
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[?:?]
at java.base/sun.nio.fs.WindowsFileCopy.move(Unknown Source) ~[?:?]
at java.base/sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source) ~[?:?]
at java.base/java.nio.file.Files.move(Unknown Source) ~[?:?]
at net.querz.mcaselector.io.mca.MCAFile.deFragment(MCAFile.java:208) ~[mcaselector.jar:?]
at net.querz.mcaselector.io.mca.MCAFile.deFragment(MCAFile.java:141) ~[mcaselector.jar:?]
at net.querz.mcaselector.io.mca.Region.deFragment(Region.java:247) ~[mcaselector.jar:?]
at net.querz.mcaselector.io.job.SelectionDeleter$MCADeleteSelectionSaveJob.execute(SelectionDeleter.java:124) ~[mcaselector.jar:?]
at net.querz.mcaselector.io.job.SaveDataJob.run(SaveDataJob.java:29) ~[mcaselector.jar:?]
at net.querz.mcaselector.io.JobHandler$WrapperJob.run(JobHandler.java:231) ~[mcaselector.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Environment (please complete the following information):
- OS: Windows 10
- Java version: 21.0.2 (downloaded and installed by MCA Selector Setup)
- Version of MCA Selector: 2.5.1
Additional context This seems like a new issue, I was able to delete individual chunks with previous versions of MCA Selector