From 236e3c3f6f08fc2f1c4a111f7a9c4d3748d46b6a Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 17 Dec 2020 15:02:49 +0000 Subject: [PATCH] correctly set changes to editsession for line/spline fixes #696 --- .../src/main/java/com/sk89q/worldedit/EditSession.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index e6051f754..fc822a7bb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -2767,7 +2767,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { newVset = this.getHollowed(newVset); } } - return setBlocks(newVset, pattern); + return this.changes += setBlocks(newVset, pattern); } /** @@ -2840,7 +2840,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { if (!filled) { vset = getHollowed(vset); } - return setBlocks(vset, pattern); + return this.changes += setBlocks(vset, pattern); } /** @@ -2892,7 +2892,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { if (!filled) { newVset = this.getHollowed(newVset); } - return setBlocks(newVset, pattern); + return this.changes += setBlocks(newVset, pattern); } return changes; }