diff --git a/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java b/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java index 834f266d..ef66d4c8 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java @@ -517,20 +517,15 @@ public class Region { public boolean redo() { initSessions(); - EditSession session = null; - try { - session = redoSessions.pop(); - if (session == null) { - return false; - } - session.redo(session); - undoSessions.push(session); - return true; - } finally { - if (session != null) { - session.flushSession(); - } + EditSession session = redoSessions.pop(); + if (session == null) + return false; + + try (EditSession e = WorldEdit.getInstance().getEditSessionFactory().getEditSession(new BukkitWorld(Bukkit.getWorlds().get(0)), -1)) { + session.redo(e); + undoSessions.push(e); } + return true; } public boolean backup() {