mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-08 16:31:58 +01:00
Fix give command for tipped arrow item (#5627)
This commit is contained in:
parent
388d571da9
commit
04c01655f6
@ -542,9 +542,9 @@ public class MetaItemStack {
|
|||||||
pmeta.addCustomEffect(pEffect, true);
|
pmeta.addCustomEffect(pEffect, true);
|
||||||
stack.setItemMeta(pmeta);
|
stack.setItemMeta(pmeta);
|
||||||
if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_9_R01)) {
|
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);
|
stack.setType(Material.SPLASH_POTION);
|
||||||
} else if (!isSplashPotion && stack.getType() != Material.POTION) {
|
} else if (!isSplashPotion && stack.getType() == Material.SPLASH_POTION) {
|
||||||
stack.setType(Material.POTION);
|
stack.setType(Material.POTION);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user