1
0
mirror of https://github.com/EssentialsX/Essentials.git synced 2025-03-02 11:11:58 +01:00

Fix give command for tipped arrow item ()

This commit is contained in:
TiagoFar78 2024-02-04 01:12:35 +00:00 committed by GitHub
parent 388d571da9
commit 04c01655f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -542,9 +542,9 @@ public class MetaItemStack {
pmeta.addCustomEffect(pEffect, true);
stack.setItemMeta(pmeta);
if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_9_R01)) {
if (isSplashPotion && stack.getType() != Material.SPLASH_POTION) {
if (isSplashPotion && stack.getType() == Material.POTION) {
stack.setType(Material.SPLASH_POTION);
} else if (!isSplashPotion && stack.getType() != Material.POTION) {
} else if (!isSplashPotion && stack.getType() == Material.SPLASH_POTION) {
stack.setType(Material.POTION);
}
} else {