Commits

coll1234567 authored and md_5 committed c8feb062965
#1291: Improve precondition message in Entity#playEffect
No tags

src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java

Modified
759 759 return entity;
760 760 }
761 761
762 762 @Override
763 763 public final EntityType getType() {
764 764 return entityType;
765 765 }
766 766
767 767 @Override
768 768 public void playEffect(EntityEffect type) {
769 - Preconditions.checkArgument(type != null, "type");
769 + Preconditions.checkArgument(type != null, "Type cannot be null");
770 770 Preconditions.checkState(!entity.generation, "Cannot play effect during world generation");
771 771
772 772 if (type.getApplicable().isInstance(this)) {
773 773 this.getHandle().level().broadcastEntityEvent(getHandle(), type.getData());
774 774 }
775 775 }
776 776
777 777 @Override
778 778 public Sound getSwimSound() {
779 779 return CraftSound.minecraftToBukkit(getHandle().getSwimSound0());

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut