From 19ed330a8d0a7445674038e7e5e469d02fb810b4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 15 Aug 2017 08:52:39 -0700 Subject: [PATCH] Always install a (valid) _new file if we have one. Thanks to deepfreeze32 for the suggested fix. --- src/main/java/com/threerings/getdown/data/Application.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/threerings/getdown/data/Application.java b/src/main/java/com/threerings/getdown/data/Application.java index a62f21c..27087be 100644 --- a/src/main/java/com/threerings/getdown/data/Application.java +++ b/src/main/java/com/threerings/getdown/data/Application.java @@ -1312,9 +1312,8 @@ public class Application try { if (_digest.validateResource(rsrc, robs)) { - // if the resource is valid but has no _local file, add it to to-install list - if (!toInstall.contains(rsrc) && !rsrc.getLocal().exists() && - rsrc.getLocalNew().exists()) { + // if the resource has a _new file, add it to to-install list + if (!toInstall.contains(rsrc) && rsrc.getLocalNew().exists()) { toInstall.add(rsrc); continue; }