Fix breeding does not consume food

This commit is contained in:
ceze88 2024-04-22 12:55:21 +02:00
parent 699ad5fa5a
commit 3431649918

View File

@ -110,13 +110,13 @@ public class ModuleAutoBreeding extends Module {
return;
}
farm.removeMaterial(breedingItem.getType(), 2);
if (stackSize > 1) {
handleStackedBreed(entity);
spawnParticlesAndAnimation(entity.getLocation(), farm.getLocation());
} else {
handleBreedNatural(entity);
spawnParticlesAndAnimation(entity.getLocation(), farm.getLocation());
}
spawnParticlesAndAnimation(entity.getLocation(), farm.getLocation());
mate1 = true;
break;
}