FastAsyncWorldEdit

FastAsyncWorldEdit

245k Downloads

Blank when exporting PNG images

BingZi-233 opened this issue ยท 0 comments

commented

Server Implementation

Paper

Server Version

1.18.1

Describe the bug

When I tried to convert the selection to PNG through the API, the resulting image was always blank. And there are some exceptions.

To Reproduce

    fun getPlotSchematic(x: Int, y: Int): File? {
        val world = FaweAPI.getWorld("world_plot")
        val region: CuboidRegion = getPlot(x, y)?.let {
            val bottomAbs = it.bottomAbs
            val topAbs = it.topAbs
            val cuboidRegion = CuboidRegion(bottomAbs.blockVector3, topAbs.blockVector3)
            cuboidRegion.world = world
            cuboidRegion
        } ?: return null
        val clipboard = BlockArrayClipboard(region)
        val forwardExtentCopy = ForwardExtentCopy(world, region, clipboard, region.minimumPoint)
        Operations.complete(forwardExtentCopy)
        val file = File.createTempFile("temp_", ".png")
        val fileOutputStream = FileOutputStream(file)
      return try {
          val writer = BuiltInClipboardFormat.PNG.getWriter(fileOutputStream)
          writer.write(clipboard)
          fileOutputStream.close()
          file
      } catch (e: Exception) {
          fileOutputStream.close()
          file.deleteOnExit()
          null
      }

Expected behaviour

The exported image should have content and be a flat top view

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/35cac75502ae42509869eb234f974708

Fawe Version

FastAsyncWorldEdit version 2.1.1-SNAPSHOT-138;2276d82

Checklist

Anything else?

[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_oxidized_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_copper_block.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_oxidized_cut_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_weathered_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_chiseled_stone_bricks.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_deepslate.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/respawn_anchor.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_mossy_stone_bricks.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_weathered_cut_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar

[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_exposed_cut_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_stone_bricks.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_cobblestone.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_cut_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_cracked_stone_bricks.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:08 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/waxed_exposed_copper.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar
[17:03:09 ERROR]: [com.fastasyncworldedit.core.util.TextureUtil] Cannot find assets/minecraft/models/block/infested_stone.json in plugins\FastAsyncWorldEdit\textures\1.18.1.jar

No response