mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
only check non sheared sheep
This commit is contained in:
@@ -37,7 +37,11 @@ public class SheepShear implements Listener {
|
||||
if (heldItem == null || heldItem.getType() == Material.AIR || heldItem.getType() != Material.SHEARS) {
|
||||
return;
|
||||
}
|
||||
addLore(heldItem);
|
||||
|
||||
Sheep sheep = (Sheep) entity;
|
||||
if (!sheep.isSheared()) {
|
||||
addLore(heldItem);
|
||||
}
|
||||
}
|
||||
|
||||
private void addLore(ItemStack itemStack) {
|
||||
|
||||
Reference in New Issue
Block a user