From ec76468c8ac4c6232bad3c2b66d4160f95f58396 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Mon, 29 Apr 2024 00:03:29 +0300 Subject: [PATCH] Remove invalid sign check (#3328) * no sign check * revert check --- lib/plugins/blocks.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/plugins/blocks.js b/lib/plugins/blocks.js index d8c0b41d0..a92e7f858 100644 --- a/lib/plugins/blocks.js +++ b/lib/plugins/blocks.js @@ -455,9 +455,10 @@ function inject (bot, { version, storageBuilder, hideErrors }) { bot.emit('error', new Error('too many lines for sign text')) return } + for (let i = 0; i < lines.length; ++i) { - if (lines[i].length > 15) { - bot.emit('error', new Error('signs have max line length 15')) + if (lines[i].length > 45) { + bot.emit('error', new Error('Signs have a maximum of 45 characters per line')) return } }