mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +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());
|
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
|
||||||
|
|
Loading…
Reference in a new issue