Instance of Sheep

This commit is contained in:
Brianna 2020-06-14 11:15:20 -05:00
parent 4eb899c648
commit 8d43089508
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class LootablesManager {
private List<Drop> runLoot(LivingEntity entity, Loot loot, int rerollChance, int looting) {
Modify modify = null;
if (entity.getType() == EntityType.SHEEP) {
if (entity instanceof Sheep) {
modify = (Loot loot2) -> {
CompatibleMaterial material = loot2.getMaterial();
if (material.name().contains("WOOL") && ((Sheep) entity).getColor() != null) {