#1291: Improve precondition message in Entity#playEffect

This commit is contained in:
Jishuna 2023-11-09 06:48:57 +11:00 committed by md_5
parent 482c56a009
commit c8feb06296
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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)) {