mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 07:34:48 +01:00
SPIGOT-7225: FireworkMeta#getPower() can throw a NullPointerException for items with no power set
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
2d8592203b
commit
20992162c0
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ class CraftMetaFirework extends CraftMetaItem implements FireworkMeta {
|
|||
|
||||
@Override
|
||||
public int getPower() {
|
||||
return this.power;
|
||||
return hasPower() ? this.power : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue