Comments (4)
I'm not sure if that's the issue. The default behavior has the block as air if it's null:
https://github.com/sk89q/WorldEdit/blob/master/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/BlockArrayClipboard.java#L122-L133
So as long as you don't set the same location twice, it should work?
from fastasyncworldedit.
But that is the method to obtain the block, not to set it. I'm not setting it twice, but the clipboard was loaded from disk. Anyway it should be fixed now, thanks.
from fastasyncworldedit.
The clipboard is just a holder of information, it can be backed by whatever data structure I choose. For example, the DiskOptimizedClipboard uses a RandomAccessFile to store the information instead of a byte array. What's important is that getting the block at the location in the clipboard returns the value that you set.
The fix I pushed only changes the behavior to account for setting the id at a location twice, it doesn't create a new array at the index if there wasn't one already there. My point being that it can be redundant to set it to air when the default return value is air.
from fastasyncworldedit.
Yes it's redundant to set air when the default value is air, but the code doesn't appear to check if the original value is really air. I was having problems changing a solid block to air.
from fastasyncworldedit.
Related Issues (20)
- [ERROR] Conversion failed, you will have to do it manually (Nukkit server + anvil2leveldb command) HOT 1
- Conversion failed, you will have to do it manually (Nukkit server + anvil2leveldb command) HOT 1
- Change the language to report an error HOT 2
- Invalid key translated no permission message HOT 1
- Error when trying to do anything with FAWE + CubicChunks HOT 3
- br vis issue in 1.12.2 forge
- net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from FastAsyncWorldEdit (com.boydti.fawe)
- //replace replacing wrong blocks HOT 1
- My interface wont even work HOT 2
- Fawe places dirt (wrong block) HOT 4
- My world doesn't match at all. It's just completely different HOT 1
- //replace across chunk borders HOT 1
- Schematic download wrong word placement in command HOT 2
- Crash from FAWE HOT 1
- How to use Schems HOT 1
- FAWE a.a5.2 bugs founded HOT 1
- Bug with lighting & shadow calculation for leaf blocks HOT 1
- //rotate //paste causing error in build 214 HOT 2
- fawe.limit in 1.15.2 HOT 1
- undo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastasyncworldedit.