fix for older MC versions

fixes #81
This commit is contained in:
hyperdefined
2024-10-05 18:37:51 -04:00
parent 6385814b52
commit 7fe0234785
2 changed files with 9 additions and 10 deletions

View File

@@ -64,15 +64,14 @@ public class SheepShear implements Listener {
return;
}
Sheep sheep = (Sheep) entity;
// make sure the sheep is not sheared
Sheep sheep = (Sheep) entity;
if (sheep.isSheared()) {
return;
}
// update the stats
ItemStack finalShears = shears;
addLore(finalShears);
addLore(shears);
}
private static @Nullable ItemStack getShears(Player player) {