Fix bleeding edge updater

The updater previously didn't update the original jar that was launched due to the use of the wrong function lol
This commit is contained in:
buthed010203
2020-11-10 16:19:07 -05:00
committed by GitHub
parent 8d3df82f81
commit c9670abff7

View File

@@ -45,7 +45,7 @@ public class BeControl{
}, updateInterval, updateInterval); }, updateInterval, updateInterval);
} }
if(System.getProperties().contains("becopy")){ if(System.getProperties().containsKey("becopy")){
try{ try{
Fi dest = Fi.get(System.getProperty("becopy")); Fi dest = Fi.get(System.getProperty("becopy"));
Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()); Fi self = Fi.get(BeControl.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());