mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-18 14:01:21 +01:00
Removed pointless NBTItem call
This commit is contained in:
parent
68962cc1da
commit
71cc9738fa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user