WorldEdit

WorldEdit

42M Downloads

/delchunks not working in nether and end dimension

djytw opened this issue ยท 2 comments

commented

Versions

WorldEdit version: Bukkit-Official(7.2.0-SNAPSHOT+5052-57d62b0) (Also tested in 7.1.0 stable)
Platform version: Paper version git-Paper-354 (MC: 1.15.2)

Describe the bug

/delchunk can delete chunks in overworld without problem, but not working in nether and end dimension.

The generated delete_chunks.json has no problems, but it shows Successfully deleted 0 matching chunks (out of xxx, taking x ms). when server starts.

To Reproduce

  1. select some blocks in nether or end
  2. /delchunks

Expected behavior

Screenshots

When removing chunks in nether: (not working)

[20:48:57 INFO]: [WorldEdit] Loading WorldEdit v7.2.0-SNAPSHOT+5052-57d62b0
[20:48:57 INFO]: Got request to register class com.sk89q.worldedit.bukkit.BukkitServerInterface with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@50a72567]
[20:48:57 INFO]: Found chunk deletions. Proceeding with deletion...
[20:48:57 DEBUG]: Processing deletion batch with 9 chunks.
[20:48:57 DEBUG]: Processing deletion batch with 195 chunks.
[20:48:57 INFO]: Successfully deleted 0 matching chunks (out of 204, taking 3 ms).
[20:48:57 INFO]: Server permissions file permissions.yml is empty, ignoring it
[20:48:57 INFO]: [WorldEdit] Enabling WorldEdit v7.2.0-SNAPSHOT+5052-57d62b0
[20:48:57 INFO]: WEPIF: Using the Bukkit Permissions API.

In overworld: (working)

[21:01:06 INFO]: [WorldEdit] Loading WorldEdit v7.2.0-SNAPSHOT+5052-57d62b0
[21:01:07 INFO]: Got request to register class com.sk89q.worldedit.bukkit.BukkitServerInterface with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@76f8cc1f]
[21:01:07 INFO]: Found chunk deletions. Proceeding with deletion...
[21:01:07 DEBUG]: Processing deletion batch with 72 chunks.
[21:01:07 DEBUG]: Deleted 7 chunks so far.
[21:01:07 DEBUG]: Deleted 14 chunks so far.
[21:01:07 DEBUG]: Deleted 21 chunks so far.
[21:01:07 DEBUG]: Deleted 28 chunks so far.
[21:01:07 DEBUG]: Deleted 35 chunks so far.
[21:01:07 DEBUG]: Deleted 42 chunks so far.
[21:01:07 DEBUG]: Deleted 49 chunks so far.
[21:01:07 DEBUG]: Deleted 56 chunks so far.
[21:01:07 DEBUG]: Deleted 63 chunks so far.
[21:01:07 DEBUG]: Deleted 70 chunks so far.
[21:01:07 INFO]: Successfully deleted 72 matching chunks (out of 72, taking 34 ms).
[21:01:07 INFO]: Server permissions file permissions.yml is empty, ignoring it
[21:01:07 INFO]: [WorldEdit] Enabling WorldEdit v7.2.0-SNAPSHOT+5052-57d62b0
[21:01:07 INFO]: WEPIF: Using the Bukkit Permissions API.
[21:01:07 INFO]: Using com.sk89q.worldedit.bukkit.adapter.impl.Spigot_v1_15_R2 as the Bukkit adapter

Additional context

commented

@wizjany I don't know the correct method, but the current logic doesn't work because Spigot/Paper put the region folder in world_the_end/DIM-1, not world_the_end (which is the path that WorldEdit tries to use).

Edit: delete_chunks.json for reference:

{
  "batches": [
    {
      "worldPath": "D:\\Documents\\SERVERS\\paper-testing\\world_the_end",
      "backup": true,
      "minChunk": [
        0,
        0
      ],
      "maxChunk": [
        1,
        1
      ]
    }
  ]
}
commented

yea this has come up before but i forgot about it, i guess there was never a GH issue.
i was planning on just changing BukkitWorld#getPath or w/e (since that api was just added for this anyway) but i think you mentioned we should make a new method for the region folder.