mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Don't ParallelQueueExtent if the editsession is created on the main thread.
This commit is contained in:
parent
31542ed4fa
commit
6f0180447f
@ -64,7 +64,6 @@ public class EditSessionBuilder {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private EventBus eventBus = WorldEdit.getInstance().getEventBus();
|
private EventBus eventBus = WorldEdit.getInstance().getEventBus();
|
||||||
private BlockBag blockBag;
|
private BlockBag blockBag;
|
||||||
private boolean threaded = true;
|
|
||||||
private EditSessionEvent event;
|
private EditSessionEvent event;
|
||||||
private String command;
|
private String command;
|
||||||
private RelightMode relightMode;
|
private RelightMode relightMode;
|
||||||
@ -307,7 +306,7 @@ public class EditSessionBuilder {
|
|||||||
if (placeChunks) {
|
if (placeChunks) {
|
||||||
if (unwrapped instanceof IQueueExtent) {
|
if (unwrapped instanceof IQueueExtent) {
|
||||||
extent = queue = (IQueueExtent) unwrapped;
|
extent = queue = (IQueueExtent) unwrapped;
|
||||||
} else if (Settings.IMP.QUEUE.PARALLEL_THREADS > 1 && threaded) {
|
} else if (Settings.IMP.QUEUE.PARALLEL_THREADS > 1 && !Fawe.isMainThread()) {
|
||||||
ParallelQueueExtent parallel = new ParallelQueueExtent(Fawe.get().getQueueHandler(), world, fastmode);
|
ParallelQueueExtent parallel = new ParallelQueueExtent(Fawe.get().getQueueHandler(), world, fastmode);
|
||||||
queue = parallel.getExtent();
|
queue = parallel.getExtent();
|
||||||
extent = parallel;
|
extent = parallel;
|
||||||
|
Loading…
Reference in New Issue
Block a user