SBPrime / AsyncWorldEdit-Premium

Async WorldEdit - Edit millions of blocks without lag! (Premium version)
Other
19 stars 4 forks source link

MaxChangedBlocksException when using the API to paste a schematic #64

Closed GyllieGyllie closed 8 years ago

GyllieGyllie commented 8 years ago

Hey,

I'm using the AWE API to regenerate my arena's for my minigames. Now everything was working fine till I changed this line:

final Operation operation = holder.createPaste(editSession, worldData).to(to).ignoreAirBlocks(true).build();

to

final Operation operation = holder.createPaste(editSession, worldData).to(to).ignoreAirBlocks(false).build();

Now it keeps throwing a MaxChangedBlocksException while I'm sure in WorldEdit settings it's set to -1. Both the worldedit settings and AWE settings are default.

SBPrime commented 8 years ago

Hi sorry for not answering sooner, but I missed your comment. Please check if you did not enable block limit in AWE.

GyllieGyllie commented 8 years ago

Hey,

thanks for the reply, in the meantime found the problem, had to get the max blocks higher when creating the IThreadSafeEditSession.

SBPrime commented 8 years ago

So you did not initialize the session using -1?

GyllieGyllie commented 8 years ago

Actually haven't tried that yet. Let me give it a shot. I'll keep you updated

GyllieGyllie commented 8 years ago

Changing it to -1 does work indeed! Thanks for the help and great plugin!

SBPrime commented 8 years ago

No problem.