Skip to content

Commit

Permalink
Merge pull request #4 from J3fftw1/J3fftw1-patch-4
Browse files Browse the repository at this point in the history
Update MagnetTask.java
  • Loading branch information
J3fftw1 committed Oct 3, 2019
2 parents f818668 + 445312e commit 9574695
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void executeTask() {
for (Entity item: Bukkit.getPlayer(uuid).getNearbyEntities(6D, 6D, 6D)) {
if (item instanceof Item && !item.hasMetadata("no_pickup") && ((Item) item).getPickupDelay() <= 0) {
item.teleport(Bukkit.getPlayer(uuid).getEyeLocation());
Bukkit.getPlayer(uuid).getWorld().playSound(Bukkit.getPlayer(uuid).getEyeLocation(), Sound.ENTITY_ENDERMAN_TELEPORT, 5L, 2L);
Bukkit.getPlayer(uuid).getWorld().playSound(Bukkit.getPlayer(uuid).getEyeLocation(), Sound.ENTITY_ENDERMAN_TELEPORT, 1L, 2L);
}
}
}
Expand Down

0 comments on commit 9574695

Please sign in to comment.