From ece42b939b0798497f88e75b4e7049ceaddb2e0e Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 15 Jun 2023 06:45:03 +1000 Subject: [PATCH] SPIGOT-7394: Fix another issue with sendSignChange By: md_5 --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 6f9addfc1f..6c5c176c15 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -695,7 +695,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { if (lines == null) { 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;