From cefa325c51787c4f8bdde7b3541e04ae47c8d731 Mon Sep 17 00:00:00 2001 From: Glare Date: Tue, 18 Jun 2024 13:03:08 -0500 Subject: [PATCH] fix: migrate from potiondata to potiontype --- .../java/com/extendedclip/deluxemenus/utils/ItemUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/extendedclip/deluxemenus/utils/ItemUtils.java b/src/main/java/com/extendedclip/deluxemenus/utils/ItemUtils.java index f9c8b3f..dd5a8b5 100644 --- a/src/main/java/com/extendedclip/deluxemenus/utils/ItemUtils.java +++ b/src/main/java/com/extendedclip/deluxemenus/utils/ItemUtils.java @@ -4,7 +4,6 @@ import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ArmorMeta; import org.bukkit.inventory.meta.PotionMeta; -import org.bukkit.potion.PotionData; import org.bukkit.potion.PotionType; import org.jetbrains.annotations.NotNull; @@ -93,8 +92,7 @@ public static boolean hasPotionMeta(@NotNull final ItemStack itemStack) { final PotionMeta itemMeta = (PotionMeta) itemStack.getItemMeta(); if (itemMeta != null) { - final PotionData potionData = new PotionData(PotionType.WATER); - itemMeta.setBasePotionData(potionData); + itemMeta.setBasePotionType(PotionType.WATER); itemStack.setItemMeta(itemMeta); }