This commit is contained in:
Daniel Odendahl Jr
2017-10-15 15:43:45 +00:00
parent dec4b5b7e9
commit d6fab67d42
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class AchievementCommand extends Command {
ctx.drawImage(base, 0, 0);
ctx.font = '17px Minecraftia';
ctx.fillStyle = '#ffff00';
ctx.fillText('Achievement Get!', 60, 37);
ctx.fillText('Achievement Get!', 60, 40);
let shorten;
if (ctx.measureText(text).width > 230) shorten = true;
while (ctx.measureText(text).width > 230) text = text.substr(0, text.length - 1);