mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
#1291: Improve precondition message in Entity#playEffect
This commit is contained in:
parent
482c56a009
commit
c8feb06296
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue