From 820ae19dc2af23f1dfe1e03cc813c8dd96488ad3 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 23 Apr 2020 23:46:43 +0100 Subject: [PATCH] Read processors in reverse order. - EditSessionBuilder always assigns the history processors before the limit extents, meaning the limit did not get properly flushed to history, but because spigot is notified of the changes after the processes have taken place, the correct edit was displayed to the player and placed into the world. - This might break other stuff... --- .../beta/implementation/processors/MultiBatchProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/processors/MultiBatchProcessor.java b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/processors/MultiBatchProcessor.java index 187ec7ecc..c5446271f 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/processors/MultiBatchProcessor.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/processors/MultiBatchProcessor.java @@ -56,7 +56,8 @@ public class MultiBatchProcessor implements IBatchProcessor { @Override public IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) { try { - for (IBatchProcessor processor : this.processors) { + for (int i = processors.length - 1 ; i >= 0; i--) { + IBatchProcessor processor = processors[i]; set = processor.processSet(chunk, get, set); if (set == null) { return null;