From 123339e5426a3ac5dbd68de1a4b6778d7767a864 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 29 Mar 2021 00:21:19 +0200 Subject: [PATCH] Add Protect Command to History --- BauSystem_Main/src/de/steamwar/bausystem/world/Region.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java index d2ad743..5d83467 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/Region.java @@ -198,7 +198,8 @@ public class Region { } public void protect(Schematic schem) throws IOException, NoClipboardException { - prototype.protect(this, schem); + initSessions(); + undosessions.push(prototype.protect(this, schem)); } public boolean hasExtensionAreaRegistered() {