From babc4636fa6104cab34a2ed24db8840800cb3e6f Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 9 Nov 2023 06:48:57 +1100 Subject: [PATCH] #1291: Improve precondition message in Entity#playEffect By: Jishuna --- .../main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index b093c78f80..4c61228227 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -766,7 +766,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { @Override public void playEffect(EntityEffect type) { - Preconditions.checkArgument(type != null, "type"); + Preconditions.checkArgument(type != null, "Type cannot be null"); Preconditions.checkState(!entity.generation, "Cannot play effect during world generation"); if (type.getApplicable().isInstance(this)) {