Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Fixed invalid sheep wool
Browse files Browse the repository at this point in the history
Fixed an issue where one of the sheep's wool drops was invalid.
  • Loading branch information
RadBuilder authored Jun 12, 2017
1 parent f9d8ff3 commit 1e7c7f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public PetSheep(UltraPlayer owner, UltraCosmetics ultraCosmetics) {
@Override
public void onUpdate() {
Sheep sheep = (Sheep) entity;
Item item = entity.getWorld().dropItem(sheep.getEyeLocation(), ItemFactory.create(Material.WOOL, (byte) r.nextInt(17), UltraCosmeticsData.get().getItemNoPickupString()));
Item item = entity.getWorld().dropItem(sheep.getEyeLocation(), ItemFactory.create(Material.WOOL, (byte) r.nextInt(16), UltraCosmeticsData.get().getItemNoPickupString()));
item.setPickupDelay(30000);
item.setVelocity(new Vector(r.nextDouble() - 0.5, r.nextDouble() / 2.0 + 0.3, r.nextDouble() - 0.5).multiply(0.4));
Bukkit.getScheduler().runTaskLater(getUltraCosmetics(), item::remove, 5);
Expand Down

0 comments on commit 1e7c7f0

Please sign in to comment.