How can i edit world asynchronous?

Yexeed

Member
Currently, i'm doing it using setBlock() in asynctask. It works, but sometimes I getting ConcurrentModificationException
Code:
@Override
public void onRun(){
     this.level.setBlock(new Vector(x, y, z), Block.get(Block.STONE));
}
 

CreeperFace

🇨🇿🇺🇦 Слава Україні!
Staff member
Currently, i'm doing it using setBlock() in asynctask. It works, but sometimes I getting ConcurrentModificationException
Code:
@Override
public void onRun(){
     this.level.setBlock(new Vector(x, y, z), Block.get(Block.STONE));
}
I don't think it's possible currently. The only way probably is to serialze the chunk data, modify them asynchronously and then set the chunk
 
Top