mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 16:40:51 +01:00
#1291: Improve precondition message in Entity#playEffect
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
parent
b11f0ec204
commit
babc4636fa
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…
Reference in a new issue