cuberite / WorldEdit

WorldEdit plugin for Cuberite
https://cuberite.org/
Apache License 2.0
42 stars 18 forks source link

Cannot paste schematics #130

Closed mathiascode closed 4 years ago

mathiascode commented 7 years ago

Schematics don't support block entities at the moment.

[14:24:33] Write: Requesting datatypes not present in the cBlockArea. Got only 0x03, requested 0x23
[14:24:33] Parameters on the stack
[14:24:33] LUA: Write: Requesting datatypes not present in the cBlockArea. Got only 0x03, requested 0x23
[14:24:33] Stack trace:
[14:24:33]   [C](-1): Write
[14:24:33]   Plugins/WorldEdit Plugin/Classes/Clipboard.lua(145): Paste
[14:24:33]   Plugins/WorldEdit Plugin/Commands/Clipboard.lua(103): (no name)
[14:24:33] Stack trace end
[14:24:33] Error in <attached> calling function <callback>()
madmaxoft commented 7 years ago

I'm beginning to feel that my changes to the cBlockArea API are not as good as I thought.

JWo1F commented 7 years ago

@madmaxoft I have the same error :(

Seadragon91 commented 7 years ago

This can be fixed by passing 3 to the end of the write function. Yes the change is not really good :( Had to fix my plugin SkyBlock with the same problem...

madmaxoft commented 7 years ago

The idea was that the plugins should take more care about what they're reading and writing.

Basically, the universal fix is to write something like:

area:Write(..., area:GetDataTypes())

But that results in boilerplate code that no-one ever touches :(

stonesliver commented 6 years ago

was this ever fixed? i am having the same issue

peterbell10 commented 6 years ago

@stonesliver this should now be fixed on the latest cuberite version.