Added MC 1.21 support
This commit is contained in:
parent
371e496351
commit
37fc9af300
6 changed files with 33 additions and 18 deletions
|
|
@ -271,7 +271,7 @@ public class BukkitAdapter implements BukkitInterface {
|
|||
@Override
|
||||
public ItemStack getArrowMeta(Arrow arrow, ItemStack itemStack) {
|
||||
PotionData data = arrow.getBasePotionData();
|
||||
if (data.getType() != PotionType.UNCRAFTABLE) {
|
||||
if (data.getType() != PotionType.valueOf("UNCRAFTABLE")) {
|
||||
itemStack = new ItemStack(Material.TIPPED_ARROW);
|
||||
PotionMeta meta = (PotionMeta) itemStack.getItemMeta();
|
||||
meta.setBasePotionData(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue