From b9854d31e362e2216842d93157695211e051b9ae Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 15 Apr 2017 10:21:32 +1000 Subject: [PATCH] Ensure modification date greater than creation --- core/src/main/java/com/boydti/fawe/command/AnvilCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java b/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java index e0f069a8..8feef479 100644 --- a/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java +++ b/core/src/main/java/com/boydti/fawe/command/AnvilCommands.java @@ -118,7 +118,7 @@ public class AnvilCommands { BasicFileAttributes attr = Files.readAttributes(file.toPath(), BasicFileAttributes.class); long creation = attr.creationTime().toMillis(); long modified = attr.lastModifiedTime().toMillis(); - if (modified - creation < fileAgeMillis) { + if (modified - creation < fileAgeMillis && modified > creation) { mca.setDeleted(true); get().add(512 * 512 * 256); return null;