mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
With "queueing" enabled, FAWE may start attempting to place chunks before the operation is finished.
This is unnacceptable for recursive operations, thus the queue should be disable in these cases Fixes #842
This commit is contained in:
@ -1179,6 +1179,10 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
||||
// Pick how we're going to visit blocks
|
||||
RecursiveVisitor visitor = new DirectionalVisitor(mask, replace, origin, direction, (int) (radius * 2 + 1));
|
||||
|
||||
// With queue enabled, FAWE may start attempting to place chunks before the operation is finished.
|
||||
// This is unnacceptable for recursive operations.
|
||||
disableQueue();
|
||||
|
||||
// Start at the origin
|
||||
visitor.visit(origin);
|
||||
|
||||
@ -1237,6 +1241,10 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
||||
visitor = new DownwardVisitor(mask, replace, origin.getBlockY(), (int) (radius * 2 + 1));
|
||||
}
|
||||
|
||||
// With queue enabled, FAWE may start attempting to place chunks before the operation is finished.
|
||||
// This is unnacceptable for recursive operations.
|
||||
disableQueue();
|
||||
|
||||
// Start at the origin
|
||||
visitor.visit(origin);
|
||||
|
||||
@ -1717,6 +1725,10 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
||||
}
|
||||
RecursiveVisitor visitor = new RecursiveVisitor(mask, replace, (int) (radius * 2 + 1));
|
||||
|
||||
// With queue enabled, FAWE may start attempting to place chunks before the operation is finished.
|
||||
// This is unnacceptable for recursive operations.
|
||||
disableQueue();
|
||||
|
||||
// Around the origin in a 3x3 block
|
||||
for (BlockVector3 position : CuboidRegion.fromCenter(origin, 1)) {
|
||||
if (mask.test(position)) {
|
||||
@ -1758,6 +1770,10 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
||||
BlockReplace replace = new BlockReplace(this, fluid.getDefaultState());
|
||||
NonRisingVisitor visitor = new NonRisingVisitor(mask, replace);
|
||||
|
||||
// With queue enabled, FAWE may start attempting to place chunks before the operation is finished.
|
||||
// This is unnacceptable for recursive operations.
|
||||
disableQueue();
|
||||
|
||||
// Around the origin in a 3x3 block
|
||||
for (BlockVector3 position : CuboidRegion.fromCenter(origin, 1)) {
|
||||
if (liquidMask.test(position)) {
|
||||
|
Reference in New Issue
Block a user