Skip to content

Commit

Permalink
Apply fix for potion meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Jun 14, 2024
1 parent 8eb7e3d commit ae65645
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ public class BukkitPotionData extends SerialPotionData<ItemStack> {
public void of(ItemStack stack) {

final PotionMeta meta = (PotionMeta)stack.getItemMeta();
if(meta != null) {
if(meta != null && meta.getBasePotionData() != null) {

if(meta.hasColor()) colorRGB = meta.getColor().asRGB();

type = meta.getBasePotionData().getType().name();
extended = meta.getBasePotionData().isExtended();
upgraded = meta.getBasePotionData().isUpgraded();
Expand Down

0 comments on commit ae65645

Please sign in to comment.