diff --git a/core/src/mindustry/net/BeControl.java b/core/src/mindustry/net/BeControl.java index a15ada94bc..768b3547fd 100644 --- a/core/src/mindustry/net/BeControl.java +++ b/core/src/mindustry/net/BeControl.java @@ -49,6 +49,8 @@ public class BeControl{ try{ Fi dest = Fi.get(System.getProperty("becopy")); Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()); + + for(Fi file : self.parent().findAll(f -> !f.equals(self))) file.delete(); self.copyTo(dest); }catch(Throwable e){