diff --git a/src/main/java/net/Indyuce/mmoitems/ability/Throw_Up.java b/src/main/java/net/Indyuce/mmoitems/ability/Throw_Up.java index e83c123c..b51c876c 100644 --- a/src/main/java/net/Indyuce/mmoitems/ability/Throw_Up.java +++ b/src/main/java/net/Indyuce/mmoitems/ability/Throw_Up.java @@ -64,7 +64,7 @@ public class Throw_Up extends Ability implements Listener { loc.getWorld().playSound(loc, Sound.ENTITY_ZOMBIE_HURT, 1, 1); - NoClipItem item = new NoClipItem(stats.getPlayer().getLocation().add(0, 1.2, 0), MMOLib.plugin.getVersion().getWrapper().getNBTItem(new ItemStack(Material.ROTTEN_FLESH)).toItem()); + NoClipItem item = new NoClipItem(stats.getPlayer().getLocation().add(0, 1.2, 0), new ItemStack(Material.ROTTEN_FLESH)); Bukkit.getScheduler().scheduleSyncDelayedTask(MMOItems.plugin, () -> item.close(), 40); item.getEntity().setVelocity(loc.getDirection().multiply(.8)); stats.getPlayer().getWorld().spawnParticle(Particle.SMOKE_LARGE, stats.getPlayer().getLocation().add(0, 1.2, 0), 0, loc.getDirection().getX(), loc.getDirection().getY(), loc.getDirection().getZ(), 1);