mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
parent
51e69e6788
commit
84f1d558c3
1 changed files with 3 additions and 2 deletions
|
@ -218,7 +218,8 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|||
return !(hasEffects() || hasPower());
|
||||
}
|
||||
|
||||
boolean hasPower() {
|
||||
@Override
|
||||
public boolean hasPower() {
|
||||
return this.power != null;
|
||||
}
|
||||
|
||||
|
@ -340,7 +341,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|||
|
||||
@Override
|
||||
public int getPower() {
|
||||
return hasPower() ? this.power : 1;
|
||||
return hasPower() ? this.power : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue