SIsilicon / WorldEdit-BE

A Minecraft Bedrock addon port of the famous WorldEdit mod for Minecraft: Java Edition.
GNU General Public License v3.0
292 stars 34 forks source link

Copying, Pasting Structures (Exporting & Importing) Type Error Cannot leave property 'size' undefined #279

Open BernardMcWeeney opened 3 months ago

BernardMcWeeney commented 3 months ago

Is there an existing issue for this?

Current behaviour

Hello,

When using both v0.9.0 and v0.9.0.6 beta the act of copying and pasting structures from one world to another does not work.

I have tried different block sizes to ensure I am not copying too many blocks, the issue persists.

When exporting, using the WorldEdit App and then making sure the resource and behaviour packs are active, importing the structure in the new world and pasting the structure provides the error:

Type Error Cannot leave property 'size' undefined

at (anonymous) (server/commands/clipboard/paste.js:73) at next (native)at (anonymous) (server/commands/negister_connands.js:24) at next (native) at (library/utils/multithreading.js:91) at loadwhileLoadingChunks (library/classes/structureBuilder.js:216) at load (server /nodules/region_buffer.js:245) at next (native) at <anonymous) (server/commands/clipboard/pasted.js:57) at next (native) at run (server/modules/ jobs.js:35) at next (native) at (anonymous) (server/commands/clipboard/pasteds.73)

Expected behaviour

The ability to seamlessly:

select structure copy structure export structure using WorldEdit App, export Structure import structure into another world paste structure

Steps to reproduce

  1. select structure to copy
  2. copy structure
  3. export structure
  4. save original world
  5. using WorldEdit App, process structure
  6. add processed structure to new world using behavior and resource packs
  7. load new world
  8. import structure
  9. paste structure

Content logs

[Scripting][warning]-[LOG] [03:31:23 PM] Processing command ';paste -s' for 'Bernard2000b'

[Scripting][error]-[ERROR] [03:31:23 PM] Command ';paste -s' failed for 'Bernard2000b' with msg: {"rawtext":[{"text":"TypeError: "},{"translate":"cannot read property 'size' of undefined","with":[]}],"lastElementIdx":1}

Minecraft version

v1.21.2

Device and operating system

windows 11

Additional info

No response

Yamato534 commented 2 weeks ago

me too in 0.9.3