From 2a8e4f9797d9360cd563a6aab69f47431f89e765 Mon Sep 17 00:00:00 2001 From: Intelli Date: Tue, 22 Feb 2022 19:49:02 -0700 Subject: [PATCH] Fixed "/co undo" not functioning when targeting a container --- .../command/RollbackRestoreCommand.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/coreprotect/command/RollbackRestoreCommand.java b/src/main/java/net/coreprotect/command/RollbackRestoreCommand.java index 86ccb43..d574ff8 100755 --- a/src/main/java/net/coreprotect/command/RollbackRestoreCommand.java +++ b/src/main/java/net/coreprotect/command/RollbackRestoreCommand.java @@ -418,13 +418,13 @@ public class RollbackRestoreCommand { } else { Rollback.performRollbackRestore(statement, player2, uuidList, rollbackusers2, rtime, blist, elist, euserlist, finalArgAction, location, radius, stime, restrictWorld, false, verbose, action, finalPreview); - if (finalPreview < 2) { - List list = new ArrayList<>(); - list.add(stime); - list.add(finalArgs); - list.add(locationFinal); - ConfigHandler.lastRollback.put(player2.getName(), list); - } + } + if (finalPreview < 2) { + List list = new ArrayList<>(); + list.add(stime); + list.add(finalArgs); + list.add(locationFinal); + ConfigHandler.lastRollback.put(player2.getName(), list); } } else {