Fix update again and fix bug in placeholders

This commit is contained in:
libraryaddict 2020-08-11 08:45:14 +12:00
parent 8b4a7a59c0
commit 695633e876
2 changed files with 4 additions and 4 deletions

View File

@ -40,8 +40,8 @@ public class LDUpdate implements LDCommand {
}
boolean releaseBuilds = checker.isUsingReleaseBuilds();
boolean wantsDownload = args[0].endsWith("!");
boolean wantsCheck = args[0].endsWith("?");
boolean wantsDownload = args[0].endsWith("!") || !wantsCheck;
if (args.length > 1) {
boolean previous = releaseBuilds;

View File

@ -479,9 +479,9 @@ public class DisguiseParser {
String name = p.getName();
arg = replace(arg, "%" + name + "-name%", targetName);
arg = replace(arg, "%" + name + "-displayname%", targetDisplayname);
arg = replace(arg, "%" + name + "-skin%", targetSkin);
arg = replace(arg, "%" + name + "-name%", name);
arg = replace(arg, "%" + name + "-displayname%", DisguiseUtilities.getDisplayName(p));
arg = replace(arg, "%" + name + "-skin%", getSkin(p));
EntityEquipment pEquip = p.getEquipment();