From 376bbe1bdb3eb11f49ba9b8f53cba90fb2ad29c4 Mon Sep 17 00:00:00 2001 From: IronApollo Date: Wed, 13 May 2020 17:45:11 -0400 Subject: [PATCH] Edit change count to default to 0 instead of -1 Why was it ever defaulted to -1? --- .../src/main/java/com/sk89q/worldedit/EditSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4e594248e..48769df5a 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -201,7 +201,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { private final MutableBlockVector3 mutablebv = new MutableBlockVector3(); - private int changes = -1; + private int changes = 0; private final BlockBag blockBag; private final Extent bypassHistory;