#1465: Add FireworkMeta#hasPower

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2024-08-24 07:44:52 +10:00
parent 51e69e6788
commit 84f1d558c3

View file

@ -218,7 +218,8 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
return !(hasEffects() || hasPower()); return !(hasEffects() || hasPower());
} }
boolean hasPower() { @Override
public boolean hasPower() {
return this.power != null; return this.power != null;
} }
@ -340,7 +341,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
@Override @Override
public int getPower() { public int getPower() {
return hasPower() ? this.power : 1; return hasPower() ? this.power : 0;
} }
@Override @Override