SPIGOT-7394: Fix another issue with sendSignChange

This commit is contained in:
md_5 2023-06-15 06:45:03 +10:00
parent 66c5ce4c7b
commit ad6d0cffbe
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -695,7 +695,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
if (lines == null) { if (lines == null) {
lines = new String[4]; lines = new String[4];
} }
Preconditions.checkArgument(lines.length < 4, "lines (%s) must be lower than 4", lines.length); Preconditions.checkArgument(lines.length >= 4, "Must have at least 4 lines (%s)", lines.length);
if (getHandle().connection == null) return; if (getHandle().connection == null) return;