hasLayedEgg = true;
entity.cooldownEgg = EntityButterfly.COOLDOWNS;
}
if(canPollinate && !hasPollinated) {
IPollinatable pollinatable = (IPollinatable)entity.worldObj.getTileEntity(rest.posX, rest.posY, rest.posZ);
if(entity.getPollen() == null) {
entity.setPollen(pollinatable.getPollen());
//Proxies.log.finest("A butterfly '%s' grabbed a pollen '%s' at %s/%s/%s.", entity.getButterfly().getIdent(), entity.getPollen().getIdent(), rest.posX, rest.posY, rest.posZ);
} else if(pollinatable.canMateWith(entity.getPollen())) {
pollinatable.mateWith(entity.getPollen());
//Proxies.log.finest("A butterfly '%s' unloaded pollen '%s' at %s/%s/%s.", entity.getButterfly().getIdent(), entity.getPollen().getIdent(), rest.posX, rest.posY, rest.posZ);
entity.setPollen(null);
}
hasPollinated = true;
entity.cooldownPollination = EntityButterfly.COOLDOWNS;