Update tools.js

修复颜色错误
This commit is contained in:
利姆露酱 2020-04-12 21:32:14 +08:00 committed by GitHub
parent f024403245
commit 32b5a27bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@
text = text.replace(/§7/gm, term.TERM_TEXT_WHITE);
text = text.replace(/§8/gm, term.TERM_TEXT_WHITE);
text = text.replace(/§9/gm, term.TERM_TEXT_CYAN);
text = text.replace(/§a/gm, term.TERM_TEXT_RED);
text = text.replace(/§a/gm, term.TERM_TEXT_GREEN);
text = text.replace(/§b/gm, term.TERM_TEXT_CYAN);
text = text.replace(/§c/gm, term.TERM_TEXT_RED);
text = text.replace(/§d/gm, term.TERM_TEXT_RED);
@ -165,7 +165,7 @@
text = text.replace(/&7/gm, term.TERM_TEXT_WHITE);
text = text.replace(/&8/gm, term.TERM_TEXT_WHITE);
text = text.replace(/&9/gm, term.TERM_TEXT_CYAN);
text = text.replace(/&a/gm, term.TERM_TEXT_RED);
text = text.replace(/&a/gm, term.TERM_TEXT_GREEN);
text = text.replace(/&b/gm, term.TERM_TEXT_CYAN);
text = text.replace(/&c/gm, term.TERM_TEXT_RED);
text = text.replace(/&d/gm, term.TERM_TEXT_RED);
@ -350,4 +350,4 @@
return null;
}
})();
})();