Skip to content

Commit

Permalink
Remove invalid sign check (#3328)
Browse files Browse the repository at this point in the history
* no sign check

* revert check
  • Loading branch information
zardoy committed Apr 28, 2024
1 parent dc70f93 commit ec76468
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/plugins/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit ec76468

Please sign in to comment.